Package flumotion :: Package twisted :: Module portal :: Class BouncerPortal
[show private | hide private]
[frames | no frames]

Class BouncerPortal

Loggable --+
           |
          BouncerPortal


I am a portal for an FPB server using a bouncer to decide on FPB client access.
Method Summary
  __init__(self, realm, bouncer)
Create a BouncerPortal to a twisted.cred.portal.IRealm.
  login(self, keycard, mind, *ifaces)
Log in the keycard to the portal using the bouncer.
    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.

Class Variable Summary
str logCategory: Implementors can provide a category to log their messages under.

Method Details

__init__(self, realm, bouncer)
(Constructor)

Create a BouncerPortal to a twisted.cred.portal.IRealm.
Parameters:
realm - an implementor of twisted.cred.portal.IRealm
bouncer - a bouncer to use for authentication
           (type=flumotion.component.bouncers.bouncer.Bouncer)

login(self, keycard, mind, *ifaces)

Log in the keycard to the portal using the bouncer.
Parameters:
keycard - the keycard used to login
           (type=flumotion.common.keycards.Keycard)
mind - a reference to the client-side requester
           (type=twisted.spread.pb.RemoteReference)
ifaces - a list of interfaces for the perspective that the mind wishes to attach to
Returns:
a deferred which will fire a tuple of (interface, avatarAspect, logout), or a failure.

Class Variable Details

logCategory

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

Generated by Epydoc 2.1 on Wed Feb 16 07:22:59 2005 http://epydoc.sf.net