|
From: Robert Š. <smo...@gm...> - 2009-07-01 06:52:22
|
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?
|