On Fri, Mar 17, 2006 at 08:33:35AM -0500, Kevin Dangoor wrote: > > Well, sorry for the diversion in config files. The pythonic ones > certainly seemed like a good idea at the time. > > 0.9a2 (and the trunk as of [962]) uses the old CherryPy config file > format, but adds an application config file in > (yourpackage)/config/app.cfg. I've put up step-by-step instructions > for migrating from the .py format: > > http://www.turbogears.org/preview/download/upgrade.html > > It's not a difficult change. > > Kevin
I seem to get an error using the new format and trying to specify a static
dir in my dev.cfg. I want to do this because I don't want selenium
accessible when it production mode.
Traceback (most recent call last):
File "./start-fatboy.py", line 19, in ?
modulename="fatboy.config.app")
File "/home/jchu/coding/turbogears/turbogears/config.py", line 40, in
update_config
fileconfig = config.update(file=configfile)
File
"/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/config.py", line
71, in update
updateMap.update(dict_from_config_file(file))
File
"/home/jchu/coding/turbogears/thirdparty/cherrypy/cherrypy/config.py", line
246, in dict_from_config_file
value = configParser.get(section, option, raw, vars)
File "/usr/lib/python2.4/ConfigParser.py", line 525, in get
return self._interpolate(section, option, value, d)
File "/usr/lib/python2.4/ConfigParser.py", line 570, in _interpolate
raise InterpolationMissingOptionError(
ConfigParser.InterpolationMissingOptionError: Bad value substitution:
section: [/selenium]
option : static_filter.dir
key : top_level_dir
rawval : "%(top_level_dir)s/selenium"
Jason
--
If you understand, things are just as they are. If you do not understand,
things are just as they are.
pgpE09jUEUcnZ.pgp
Description: PGP signature
