|
From: Michael F. <fuz...@vo...> - 2009-07-02 14:53:10
|
Robert Šmol wrote:
> Hi,
> I have following for my config spec:
>
> _defaultLogFormat = '%(asctime)s - %(levelname)s - %(message)s'
> _configspec = ('''
> [general]
> log_format = string(min=1, max=100, default=%s)
> ''' % (_defaultLogFormat)).split('\n')
>
> When I execute I get the MissingInterpolationError
> ...
> ..
> File "/var/lib/python-support/python2.5/configobj.py", line 368, in
> recursive_interpolate
> k, v, s = self._parse_match(match)
> File "/var/lib/python-support/python2.5/configobj.py", line 454, in
> _parse_match
> value, section = self._fetch(key)
> File "/var/lib/python-support/python2.5/configobj.py", line 424, in _fetch
> raise MissingInterpolationOption(key)
> configobj.MissingInterpolationOption: missing option "asctime" in interpolation.
>
> How do I get round this?
>
Sorry for the slow response I'm currently at EuroPython. Can you send me
a config file and *full* code to reproduce this.
Thanks
Michael
> ------------------------------------------------------------------------------
> _______________________________________________
> Configobj-develop mailing list
> Con...@li...
> https://lists.sourceforge.net/lists/listinfo/configobj-develop
>
--
http://www.ironpythoninaction.com/
|