Package flumotion :: Package twisted :: Module portal :: Class BouncerPortal
[hide private]

Class BouncerPortal

source code

common.log.Loggable --+
                      |
                     BouncerPortal
Known Subclasses:

I am a portal for an FPB server using a bouncer to decide on FPB client access.

Instance Methods [hide private]
 
__init__(self, realm, bouncer)
Create a BouncerPortal to a twisted.cred.portal.IRealm.
source code
defer.Deferred firing list of str
getKeycardClasses(self)
Return the Keycard interfaces supported by this portal's bouncer.
source code
 
login(self, keycard, mind, *ifaces)
Log in the keycard to the portal using the bouncer.
source code
 
_authenticateCallback(self, result, mind, *ifaces) source code

Inherited from common.log.Loggable: __providedBy__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

Class Variables [hide private]
  logCategory = 'BouncerPortal'
Implementors can provide a category to log their messages under.
  __implemented__ = <implementedBy flumotion.twisted.portal.Boun...
  __provides__ = <zope.interface.declarations.ClassProvides obje...
Method Details [hide private]

__init__(self, realm, bouncer)
(Constructor)

source code 

Create a BouncerPortal to a twisted.cred.portal.IRealm.

Parameters:

login(self, keycard, mind, *ifaces)

source code 

Log in the keycard to the portal using the bouncer.

Parameters:
  • keycard (flumotion.common.keycards.Keycard) - the keycard used to login
  • mind (twisted.spread.pb.RemoteReference) - a reference to the client-side requester
  • 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 None.

Class Variable Details [hide private]

__implemented__

Value:
<implementedBy flumotion.twisted.portal.BouncerPortal>

__provides__

Value:
<zope.interface.declarations.ClassProvides object at 0x8fde92c>