Package Products :: Package ZenHub :: Module zodb
[hide private]
[frames] | no frames]

Module zodb

source code

Classes [hide private]
InvalidationEvent
UpdateEvent
DeletionEvent
Functions [hide private]
 
_remove(_ignored, oid, queue)
We don't want bad oids hanging around forever.
source code
 
_dispatch(dmd, oid, ioid, queue)
Send to all the services that care by firing events.
source code
 
processInvalidations(dmd, queue, oids) source code
 
_listener_decorator_factory(eventtype)
Given a particular event interface, returns a decorator factory that may be used to create decorators for methods causing those methods, when bound, to be registered as object event subscribers.
source code
Variables [hide private]
  log = logging.getLogger('zen.ZenHub')
  onUpdate = _listener_decorator_factory(IUpdateEvent)
  onDelete = _listener_decorator_factory(IDeletionEvent)
Function Details [hide private]

processInvalidations(dmd, queue, oids)

source code 
Decorators:
  • @defer.inlineCallbacks

_listener_decorator_factory(eventtype)

source code 

Given a particular event interface, returns a decorator factory that may be used to create decorators for methods causing those methods, when bound, to be registered as object event subscribers.

Parameters:
  • eventtype - The event interface to which the subscribers should listen.