Package flumotion :: Package manager :: Module manager :: Class Dispatcher
[show private | hide private]
[frames | no frames]

Class Dispatcher

Loggable --+
           |
          Dispatcher


I implement portal.IRealm. I make sure that when a pb.Avatar is requested through me, the Avatar being returned knows about the mind (client) requesting the Avatar.
Method Summary
  __init__(self)
  createAvatarFor(self, avatarId, ifaces)
Create an avatar from the heaven implementing the given interface.
  registerHeaven(self, heaven, interface)
Register a Heaven as managing components with the given interface.
  removeAvatar(self, avatarId, avatar, mind)
Remove an avatar because it logged out of the manager.
  requestAvatar(self, avatarId, mind, *ifaces)
    Inherited from Loggable
  debug(self, *args)
Log a debug message.
  error(self, *args)
Log an error.
  info(self, *args)
Log an informational message.
  log(self, *args)
Log a log message.
  logFunction(self, message)
Overridable log function.
  logObjectName(self)
Overridable object name function.
  warning(self, *args)
Log a warning.
  warningFailure(self, failure)
Log a warning about a Failure.

Class Variable Summary
MetaInterface __implements__ = twisted.cred.portal.IRealm
str logCategory: Implementors can provide a category to log their messages under.

Method Details

createAvatarFor(self, avatarId, ifaces)

Create an avatar from the heaven implementing the given interface.
Parameters:
avatarId - the name of the new avatar
           (type=string)
ifaces - a list of heaven interfaces to get avatar from, including pb.IPerspective
           (type=tuple of interfaces linked to heaven)
Returns:
an avatar from the heaven managing the given interface.

registerHeaven(self, heaven, interface)

Register a Heaven as managing components with the given interface.
Parameters:
interface - a component interface to register the heaven with.
           (type=twisted.python.components.Interface)

removeAvatar(self, avatarId, avatar, mind)

Remove an avatar because it logged out of the manager.

This function is registered by requestAvatar.

Class Variable Details

logCategory

Implementors can provide a category to log their messages under.
Type:
str
Value:
'dispatcher'                                                           

Generated by Epydoc 2.1 on Tue Dec 20 15:33:10 2005 http://epydoc.sf.net