I'm having trouble parsing the TG cfg files. I need some external apps
to read the same config files.
dev.cfg has what look like nested sections, for example:
[[loggers]]
[[[foo]]]
level='DEBUG'
qualname='foo'
handlers=['debug_out']
Does TG use the standard library ConfigParser module? When I try to
load my dev.cfg, just using the ConfigParser.SafeConfigParser class, I
get weird results:
In [68]: c = ConfigParser.SafeConfigParser()
In [69]: c.read('/home/matt/svn-checkouts/bz/trunk/foo/dev.cfg')
Out[69]: ['/home/matt/svn-checkouts/bz/trunk/bazman/dev.cfg']
In [70]: c.sections()
Out[70]: ['logging', 'global', '[[access', '[loggers', '[[foo',
'[[allinfo']
Is there some special TG config file parser I need to use?
Matt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---