Package twisted :: Package python :: Module components :: Class Adapter
[frames | no frames]

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.

Method Details

__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

Class Variable Details

__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:
1                                                                     

temporaryAdapter

If this is True, the adapter will not be persisted on the Componentized.
Type:
int
Value:
0                                                                     

Generated by Epydoc 2.1 on Sun Dec 10 22:04:45 2006 http://epydoc.sf.net