Package cherrypy :: Module _cptools :: Class Toolbox
[hide private]
[frames] | no frames]

Class Toolbox

source code

object --+
         |
        Toolbox

A collection of Tools.

This object also functions as a config namespace handler for itself. Custom toolboxes should be added to each Application's toolboxes dict.

Instance Methods [hide private]
 
__init__(self, namespace)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__setattr__(self, name, value)
x.__setattr__('name', value) <==> x.name = value
source code
 
__enter__(self)
Populate request.toolmaps from tools specified in config.
source code
 
__exit__(self, exc_type, exc_val, exc_tb)
Run tool._setup() for each tool in our toolmap.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, namespace)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__setattr__(self, name, value)

source code 

x.__setattr__('name', value) <==> x.name = value

Overrides: object.__setattr__
(inherited documentation)