Home | Trees | Index | Help |
---|
Package twisted :: Package python :: Module components :: Class Adapter |
|
ProtocolToConsumerAdapter
,
ConsumerToProtocolAdapter
,
ManholeClient
,
DefaultSaver
,
StorableDictionaryFacade
,
AbstractTypeMapper
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 | |
---|---|
Set my 'original' attribute to be the object I am adapting. | |
I forward getComponent to self.original on the assumption that it is an instance of Componentized. | |
Forward isuper to self.original |
Class Variable Summary | |
---|---|
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. |
Method Details |
---|
__init__(self,
original)
Set my 'original' attribute to be the object I am adapting.
|
getComponent(self, interface, registry=None, default=None)I forward getComponent to self.original on the assumption that it is an instance of Componentized. |
isuper(self, iface, adapter)Forward isuper to self.original |
Class Variable Details |
---|
multiComponentIf this adapter is persistent, should it be automatically registered for all appropriate interfaces.
|
temporaryAdapterIf this is True, the adapter will not be persisted on the Componentized.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Fri Jun 27 03:48:40 2003 | http://epydoc.sf.net |