List Info

Thread: On cherrypy 3.0.0, how to set the configuration besides using a file ?




On cherrypy 3.0.0, how to set the configuration besides using a file ?
country flaguser name
United States
2007-03-23 11:44:04
Hi all,

I'm looking for some help on using cherrypy: how can I set
the
configuration in some other way than using a file ?

I know how to do this:

cherrypy.quickstart(Root(), '/', config='./config.conf'))

But that way, all configuration parameters are frozen in
the
config.conf file. For instance, look at what happens to
authentication
passwords. Here is a snippet of my config.conf file:

[/secret]
tools.basic_auth.on = True
tools.basic_auth.realm = 'localhost'
tools.basic_auth.users = { 'test' :
'098f6bcd4621d373cade4e832627b4f6' }

I want to be able to add more users to the keyword
'tools.basic_auth.users'. How can I do that  without using
the
config.conf file ? Which other ways can I configure the
server so that
I do not need a file ?

Thanks.
Leonel


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )