On Apr 4, 12:08 am, "Christian Wyglendowski"
<christ... dowski.com>
wrote:
> On 4/3/07, northof40 <shearich... gmail.com> wrote:
>
>
>
>
>
> > Hi - I have an app which up until now I have
configured via a file ...
>
> >
cherrypy.config.update(file="cptestbedconf.conf")
>
> > ... but I'd now like to dynamically amend the
values set by the file.
> > I've tried all sorts of things but I can't get the
change to take. One
> > thing that makes this a bit tricky is that the app
is still on CP
> > 2.1.1
>
> > Below are some of the attempts ...
>
> > ATTEMPT 1:
> > dicSettings = {
> > 'global': {
> > 'server.log_file':
> > "cpoCPServerLogFileDYNAMIC",
> > }
> > }
>
> > cherrypy.config.update(dicSettings)
>
> Hi. Looks like the problem is that you are using the
wrong
> configuration key to specify your log file. It should
not be
> server.log_file in 2.1.1. It is server.logFile.
>
> HTH,
>
> Christianhttp://www.dowski.com
That's really great, thanks. It works fine now.
regards
Richard.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|