|
From: Nicola L. <ni...@te...> - 2006-12-09 17:39:10
|
Robin Munn wrote: > Here's the patch to change the section search behavior. Instead of > looking only at DEFAULT sections, it will look at the current section, > then its DEFAULT, then move up to the parent section and repeat the > process. > > This is a patch against a version of configobj.py that has the 3rd > template interpolation patch (the one in my previous email to this > thread) already applied. Both patches are now included in the SVN repo. Thanks again for them, Robin, and sorry for not having come round to them sooner. ConfigObj now supports both ConfigParser-style and Template-style interpolation, with a more consistent search strategy (see docs). > I've also attached the sample .ini file I used for testing, called > "deepsearch.ini", so you can verify for yourself that the code works. I added new tests to configobj_test.py based on this one and on the other .ini file. A new release containing these changes will have to wait for the further changes that are coming up in the pipeline. In the meantime, the SVN repo is reliable and tested. Please let us know any problems these changes may cause to your config files. -- Nicola Larosa - http://www.tekNico.net/ I have no interest in continuing down the J2EE path. I have seen Enterprise Java Beans with container managed persistence mappers that give me nightmares. I have seen Spring and Hibernate, and it seems like a terrible misuse and abuse of XML. I would like to drop Java like a hot rock at this point. -- Andrew Smith, June 2006 |