Trees | Indices | Help |
---|
|
object --+ | common.common.InitMixin --+ | extern.log.log.Loggable --+ | component.BaseComponent --+ | bouncer.Bouncer --+ | IcalBouncer
|
|||
Inherited from |
|
|||
logCategory =
Implementors can provide a category to log their messages under. |
|||
tuple of flumotion.common.keycards.Keycard class objects |
keycardClasses =
tuple of all classes of keycards this bouncer can authenticate, in order of preference |
||
events =
|
|||
Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
A subclass should do as little as possible in its init method. In particular, it should not try to access resources. Failures during init are marshalled back to the manager through the worker's remote_create method, since there is no component state proxied to the manager yet at the time of init.
|
BaseComponent convenience vmethod for running checks. A component implementation can override this method to run any checks that it needs to. Typically, a check_properties implementation will call the provided addMessage() callback to note warnings or errors. For errors, addMessage() will set component's mood to sad, which will abort the init process before getting to do_setup().
|
Subclasses can implement me to set up the component before it is started. It should set up the component, possibly opening files and resources. Non-programming errors should not be raised, but returned as a failing deferred. The return value may be a deferred.
|
Must be overridden by subclasses. Authenticate the given keycard. Return the keycard with state AUTHENTICATED to authenticate, with state REQUESTING to continue the authentication process, or REFUSED to deny the keycard or a deferred which should have the same eventual value. FIXME: Currently, a return value of 'None' is treated as rejecting the keycard. This is unintuitive. FIXME: in fact, for authentication sessions like challenge/response, returning a keycard with state REFUSED instead of None will not work properly and may enter in an asynchronous infinit loop.
|
BaseComponent vmethod for stopping. The component should do any cleanup it needs, but must not set the component's mood to sleeping.
|
|
keycardClassestuple of all classes of keycards this bouncer can authenticate, in order of preference
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sun Nov 15 09:18:05 2009 | http://epydoc.sourceforge.net |