Trees | Index | Help |
---|
Package flumotion :: Package component :: Package bouncers :: Module bouncer :: Class Bouncer |
|
object
--+ |GObject
--+ |object
--+ | | |InitMixin
--+ |Loggable
--+ |BaseComponent
--+ | Bouncer
Method Summary | |
---|---|
addKeycard(self,
keycard)
| |
authenticate(self,
keycard)
| |
Must be overridden by subclasses. | |
expireAllKeycards(self)
| |
expireKeycardId(self,
id)
| |
getDomain(self)
| |
hasKeycard(self,
keycard)
| |
A subclass should do as little as possible in its init method. | |
removeKeycard(self,
keycard)
| |
removeKeycardId(self,
id)
| |
setDomain(self,
name)
| |
setEnabled(self,
enabled)
| |
Verify if the keycard is an instance of a Keycard class specified in the bouncer's keycardClasses variable. | |
Inherited from BaseComponent | |
Subclasses should not override __init__ at all. | |
Add a message to the component. | |
Call a remote method on all admin client views on this component. | |
Subclasses can implement me to run any checks before the component performs setup. | |
Subclasses can implement me to set up the component before it is started. | |
BaseComponent vmethod for starting up. | |
BaseComponent vmethod for stopping. | |
| |
Fix properties that have been renamed from a previous version, and add a warning for them. | |
int |
Gets the mood on the component. |
| |
| |
| |
Set the given mood on the component if it's different from the current one. | |
Set the shutdown hook for this component (replacing any previous hook). | |
Sets up the component with the given config. | |
| |
Tell the component to start. | |
Tell the component to stop. | |
Inherited from Loggable | |
Log a debug message. | |
dict |
Log a message at the given level, with the possibility of going higher up in the stack. |
Log an error. | |
Log an informational message. | |
Log a log message. | |
Overridable log function. | |
Overridable object name function. | |
Log a warning. | |
Log a warning about a Failure. | |
Inherited from GObject | |
x.__cmp__(y) <==> cmp(x,y) | |
x.__delattr__('name') <==> del x.name | |
| |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Inherited from object | |
x.__getattribute__('name') <==> x.name | |
helper for pickle | |
helper for pickle | |
x.__str__() <==> str(x) |
Instance Variable Summary | |
---|---|
Inherited from BaseComponent | |
BaseComponentMedium |
medium : the component's medium |
string | name : the name of the component |
Class Variable Summary | |
---|---|
tuple of flumotion.common.keycards.Keycard
class objects |
keycardClasses : tuple of all classes of keycards this bouncer can authenticate, in
order of preference |
str |
logCategory : Implementors can provide a category to log their messages under. |
Inherited from BaseComponent | |
GType |
__gtype__ = <GType flumotion+component+component+BaseCom...
|
Inherited from Loggable | |
Implements |
__implemented__ = <implementedBy flumotion.common.log.Lo...
|
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
Inherited from GObject | |
str |
__gdoc__ = 'Object GObject\n\nSignals from GObject:\n n...
|
getset_descriptor |
__grefcount__ = <attribute '__grefcount__' of 'gobject.G...
|
GProps |
props = <gobject.GProps object at 0xa2d4f0>
|
Method Details |
---|
do_authenticate(self, keycard)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 None to deny the keycard, or a deferred which should have the same eventual value. |
init(self)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.
|
typeAllowed(self, keycard)Verify if the keycard is an instance of a Keycard class specified in the bouncer's keycardClasses variable. |
Class Variable Details |
---|
keycardClassestuple of all classes of keycards this bouncer can authenticate, in order of preference
|
logCategoryImplementors can provide a category to log their messages under.
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Jul 30 18:00:09 2007 | http://epydoc.sf.net |