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

Class BouncerPortal

source code

extern.log.log.Loggable --+
                          |
                         BouncerPortal

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
twisted.internet.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
 
__provides__(...)
Special descriptor for class __provides__

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

Class Variables [hide private]
  logCategory = 'BouncerPortal'
Implementors can provide a category to log their messages under.
  __implemented__ = <implementedBy flumotion.twisted.portal.Boun...
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.

__provides__(...)

 
Special descriptor for class __provides__

The descriptor caches the implementedBy info, so that
we can get declarations for objects without instance-specific
interfaces a bit quicker.

Overrides: extern.log.log.Loggable.__provides__

Class Variable Details [hide private]

__implemented__

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