Trees | Indices | Help |
|
---|
|
object --+ | AEAccAdapter
Base class for all adapter classes.
Has default class attributes indicating the adapter provides no interfaces by default. Has a default constructor that takes and stores the subject being adapted.
|
|||
|
|||
object |
|
||
Inherited from |
|
|||
list of Interface |
provides = [] Interfaces provided by this adapter |
||
string or callable |
when = None Condition under which this adapter is applicable to the given subject. |
||
boolean |
singleton = False If True, only one instance of this adapter will be registered for use such that it is reused for all subjects. |
|
|||
object |
subject Object being adapted |
|
|||
Inherited from |
|
|
|
|
whenCondition under which this adapter is applicable to the given subject. The condition can either be a staticmethod callable that results in a boolean value or a string that will be evaluated as a boolean Python expression in the namespace in which it is defined. This implies any variables in the global namespace of the AEAccAdapter subclass can be used in the when clause. String conditions are only evaluated once at startup rather than on each call. If the condition is None, the AEAccAdapter is considered a default.
|
singletonIf True, only one instance of this adapter will be registered for use such that it is reused for all subjects. If False, this class will be registered for use such that it will act as a factory for producing adapter instances for all subjects.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Mon Jun 30 13:05:50 2008 | http://epydoc.sourceforge.net |