|
From: Michael H. <lis...@mi...> - 2006-12-12 09:45:38
|
I have severe problems getting interpolation work for me. I have a
config file with e.g. the following content:
| [object]
| field1: test test test %(uid)s
The uid-value is not defined in the config file but shall be set on
runtime. I can't figure out how to set the value, i always end up
with 'MissingInterpolationOption' or other errors (e.g. KeyError).
I tried for example config['DEFAULT']['uid'] = 'user' (KeyError),
config['uid'] = 'user' (MissingInterpolationOption). I'm sure i
make a simple mistake, but i can't figure it out. Some help would
be appreciated.
Regards
Michael
--
It's an insane world, but i'm proud to be a part of it. -- Bill Hicks
|