List Info

Thread: static file doc not work




static file doc not work
user name
2006-12-21 05:45:29
gasolingmail.com wrote:
> conf = {'/static' :
>         {'cherrypy.tools.staticdir.on': True,
>          'cherrypy.tools.staticdir.dir': ...

Short answer:
...when declared in config, the keys are just
"tools.staticdir.*", not
"cherrypy.tools.staticdir.*".

Longer answer:
Config keys get split on ".", and the first atom
is used to find a config handler for that namespace. So only
config keys that start with "tools." will get
passed to the "tools" namespace handler.

Plus what Christian said.

Hope that helps!


Robert Brewer
System Architect
Amor Ministries
fumanchuamor.org

--~--~---------~--~----~------------~-------~--~----~
 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 http://groups-beta.google.com/group/cherrypy-users?hl=en

-~----------~----~----~----~------~----~------~--~---

[1]

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