Package cherrypy :: Module _cprequest :: Class HookMap
[hide private]
[frames] | no frames]

Class HookMap

source code

object --+    
         |    
      dict --+
             |
            HookMap

A map of call points to lists of callbacks (Hook objects).

Instance Methods [hide private]
new empty dictionary

__init__(self, *a, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
attach(self, point, callback, failsafe=None, priority=None, **kwargs)
Append a new Hook made from the supplied arguments.
source code
 
run(self, point)
Execute all registered Hooks (callbacks) for the given point.
source code
a shallow copy of D
__copy__(self) source code
a shallow copy of D
copy(self) source code
 
__repr__(self)
repr(x)
source code

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __ne__, __setitem__, clear, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__, __str__

Static Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, points=None) source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(cls, points=None)
Static Method

source code 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__
(inherited documentation)

__init__(self, *a, **kw)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Returns:
new empty dictionary

Overrides: object.__init__
(inherited documentation)

copy(self)

source code 
Returns: a shallow copy of D
Overrides: dict.copy
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)