On 3/8/06, Kevin Dangoor <[EMAIL PROTECTED]> wrote: > > So, taking into account the various bits of input and the fact that > there would appear to be a problem with the new style configs and > Python 2.3, I'm going to change our config system over to using > ConfigObj. > > http://www.voidspace.org.uk/python/configobj.html
It looks pretty complete. I like the validator, conversion to ints and lists, triple-quoted strings, and keeping the keys/values in order. I suppose I should like the multi-level sections.The comma-separated list feature is cool, and I guess it has enough safeguards to distinguish lists from strings. > 1) path() changes back to [] > 2) absfile() will change to some variable you can substitute in using > the %()s style that points to the absolute path of your project's > package. > 3) both config files go back to having .cfg extensions OK. > I'm also considering adding a config directory and breaking up the > configuration into separate files so that they don't become unwieldy. > I think there's going to be a lot more configuration possible (but not > required) in the future. My demo app had four config files (dev_mysql, dev_sqlite, prod_mysql, prod_sqlite), so I can see the use for a directory. -- Mike Orr <[EMAIL PROTECTED]> ([EMAIL PROTECTED] address is semi-reliable) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

