Home | Trees | Indices | Help |
|
---|
|
object --+ | dict --+ | NamespaceSet
A dict of config namespace names and handlers.
Each config entry should begin with a namespace name; the corresponding namespace handler will be called once for each config entry in that namespace, and will be passed two arguments: the config key (with the namespace removed) and the config value.
Namespace handlers may be any Python callable; they may also be Python 2.5-style 'context managers', in which case their __enter__ method should return a callable to be used as the handler. See cherrypy.tools (the Toolbox class) for an example.
|
|||
|
|||
|
|||
a shallow copy of D |
|
||
a shallow copy of D |
|
||
Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
Iterate through config and pass it to each namespace handler. 'config' should be a flat dict, where keys use dots to separate namespaces, and values are arbitrary. The first name in each config key is used to look up the corresponding namespace handler. For example, a config entry of {'tools.gzip.on': v} will call the 'tools' namespace handler with the args: ('gzip.on', v) |
repr(x)
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Aug 24 13:21:29 2009 | http://epydoc.sourceforge.net |