Hi Colin,

I hadn't responded to this message when you initially wrote it,
because I was in the process of upgrading the configs at the time.

TurboGears now uses Python-based config files (that still look like
INI files). The config reader for this (in
turbogears.config:PathConfig) can give you a dictionary of the values
from the config file to do with as you please. TurboGears itself loads
this dictionary into cherrypy.config.

Kevin

On 1/10/06, Colin <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I would like to load application config info from an ini file on app
> startup and store it "somewhere" so it would be accessible to classes
> throughout the app.  Ultimately users would edit this file, so I do not
> feel that it should be combined with the cherrypy config in
> dev.cfg/prod.cfg.
>
> Any suggestions on which module/class should load the config file and
> where to store the resulting configuration object?  The tg/cherrypy
> startup procedure is still a bit of a mystery to me.
>
> thanks,
> Colin
>
>


--
Kevin Dangoor
Author of the Zesty News RSS newsreader

email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com

Reply via email to