On 12/2/06, Jeff Hinrichs - DM&T <[EMAIL PROTECTED]> wrote:
> On 12/2/06, dundeemt <[EMAIL PROTECTED]> wrote:
> > I am trying to read a setting out of app.cfg from the web console but
> > it is not finding my setting.
> >
> > app.cfg
> > ======
> > [global]
> > foo.bar = "baz"
> >
> > Then startup the webconsole via tg-admin toolbox
> >
> > then
> > >>> import turbogears
> > >>> print turbogears.config.get('foo.bar')
> > None
> >
> > I've googled to no avail and reading cherrypy.config code seems to make
> > believe that this should work. Is it reading a different app.cfg? If
> > so, why doesn't webconsole use the one for the current project and how
> > do I read the projects app.cfg?
> >
> >
> > Thanks,
> >
> > Jeff
> >
> >
>
>
> I just tried putting the setting(foo.bar = "baz") in the [global]
> section of dev.cfg, restarted the toolbox and it is not finding the
> setting there either..
>
> -Jeff
>
I just tried putting the setting(foo.bar = "baz") in the [global]
section of dev.cfg, restarted the toolbox and it is not finding the
setting there either..
-Jeff
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---