Package pulp :: Package server :: Package event :: Module dispatcher :: Class Handler
[hide private]
[frames] | no frames]

Class Handler

source code

Handler specification.

Instance Methods [hide private]
 
__init__(self, hclass, inbound, outbound) source code
EventHandler
inst(self)
Get an instance of the handler.
source code
method
inbound(self, action)
Find the inbound method for the specified action.
source code
method
outbound(self, action)
Find the outbound method for the specified action.
source code
Instance Variables [hide private]
str hclass
The handler class name.
method ibmethod
registered inbound methods.
method obmethod
registered outbound methods.
Method Details [hide private]

__init__(self, hclass, inbound, outbound)
(Constructor)

source code 
Parameters:
  • hclass (str) - The handler class name.
  • ibmethod (method) - registered inbound methods.
  • obmethod (method) - registered outbound methods.

inst(self)

source code 

Get an instance of the handler.

Returns: EventHandler
An instance of the handler.

inbound(self, action)

source code 

Find the inbound method for the specified action.

Parameters:
  • action (str) - An event subject action.
Returns: method
The method registered for the (inbound) action.

outbound(self, action)

source code 

Find the outbound method for the specified action.

Parameters:
  • action (str) - An event subject action.
Returns: method
The method registered for the (outbound) action.