Package twisted ::
Package python ::
Module components ::
Class Adapter
|
|
Class Adapter
- Known Subclasses:
-
BuildBox
,
BuilderControl
,
BuildTopBox
,
ChangeBox
,
CurrentBox
,
EventBox
,
SpacerBox
,
StepBox
I am the default implementation of an Adapter for some interface.
This docstring contains a limerick, by popular demand:
Subclassing made Zope and TR
much harder to work with by far.
So before you inherit,
be sure to declare it
Adapter, not PyObject*
Method Summary |
|
__init__ (self,
original)
Set my 'original' attribute to be the object I am adapting. |
|
__conform__ (self,
interface)
I forward __conform__ to self.original if it has it, otherwise I
simply return None. |
|
isuper (self,
iface,
adapter)
Forward isuper to self.original |
Class Variable Summary |
Implements |
__implemented__ = <implementedBy twisted.python.componen...
|
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
int |
multiComponent : If this adapter is persistent, should it be automatically registered
for all appropriate interfaces. |
int |
temporaryAdapter : If this is True, the adapter will not be persisted on the
Componentized. |
__init__(self,
original)
(Constructor)
Set my 'original' attribute to be the object I am adapting.
-
|
__conform__(self,
interface)
I forward __conform__ to self.original if it has it, otherwise I
simply return None.
-
|
isuper(self,
iface,
adapter)
Forward isuper to self.original
-
|
__implemented__
-
- Type:
-
Implements
- Value:
<implementedBy twisted.python.components.Adapter>
|
|
__providedBy__
-
- Type:
-
ClassProvides
- Value:
<zope.interface.declarations.ClassProvides object at 0x404e002c>
|
|
__provides__
-
- Type:
-
ClassProvides
- Value:
<zope.interface.declarations.ClassProvides object at 0x404e002c>
|
|
multiComponent
If this adapter is persistent, should it be automatically registered
for all appropriate interfaces.
-
- Type:
-
int
- Value:
|
temporaryAdapter
If this is True, the adapter will not be persisted on the
Componentized.
-
- Type:
-
int
- Value:
|