|
From: Fuzzyman <fuz...@vo...> - 2005-12-14 12:46:03
|
Jim...@no... wrote: > [snip....] > >>The answer is for validation to *not* be done on the 'DEFAULT' >>section. >> >> > >Is it, therefore, correct to conclude that interpolations are best done >in a config file because, if present in a configspec file, they can not >be validated, but that this will change with the 4.1.0 release? > > > That is currently the case. I'm sending you by private email an interim version which has the fix made. I'm targeting a 4.1.0 release within a week. The changes now to be made are in the validate module - for it to support the ``default=list(..)`` constructor. All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml >>I'm targeting all the discussed recent changes/bugfixes for a 4.1.0 >>release. >>All the best, >> >>Fuzzyman >> >>http://www.voidspace.org.uk/python/index.shtml >> >> >> >>><output> >>>sys.platform: win32 >>>sys.version: 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC >>>v.1310 32 bit (Intel)] >>>sys.getwindowsversion(): (5, 1, 2600, 2, 'Service Pack 2') >>>sys.winver: 2.4 >>> >>>configobj.__version__: 4.0.2 >>>validate.__version__: 0.2.0 >>> >>>*** validation succeeded *** >>>Traceback (most recent call last): >>> File "C:\Documents and Settings\jim.vickroy\My >>>Documents\Projects\_experimental_\pythonutils\configobj\test- >>> >>> >>reader.py",> line 55, in ? >> >> >>> assert facts['interpolated string'] == 'fuzzy-man', >>>facts['interpolated string'] >>>AssertionError: fuzzy-string(default="man") >>></output> >>> >>> >>>Thanks, >>>-- jv >>> >>> >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: Splunk Inc. Do you grep through >>log files >>for problems? Stop! Download the new AJAX search engine that makes >>searching your log files as easy as surfing the web. DOWNLOAD >>SPLUNK!http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >>_______________________________________________ >>Configobj-develop mailing list >>Con...@li... >>https://lists.sourceforge.net/lists/listinfo/configobj-develop >> >> >> > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >_______________________________________________ >Configobj-develop mailing list >Con...@li... >https://lists.sourceforge.net/lists/listinfo/configobj-develop > > > |