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 the given keycard. | |
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)
| |
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. | |
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.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
x.__repr__() <==> repr(x) | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
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. |
classobj |
componentMediumClass = flumotion.component.bouncers.bouncer.BouncerMedium |
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 0x41bd360c>
|
Method Details |
---|
authenticate(self, keycard)Authenticate the given keycard. Can be overridden by subclasses. Return the keycard with state AUTHENTICATED to authenticate, with state REQUESTING to continue the authentication process, or None to deny the keycard. |
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 Fri Feb 2 11:44:36 2007 | http://epydoc.sf.net |