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

Class Adapter

Known Subclasses:
DefaultSaver, Test, XA

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.
  getComponent(self, interface)
I forward getComponent to self.original on the assumption that it is an instance of Componentized.

Class Variable Summary
int multiComponent
int temporaryAdapter

Method Details

__init__(self, original)
(Constructor)

Set my 'original' attribute to be the object I am adapting.

getComponent(self, interface)

I forward getComponent to self.original on the assumption that it is an instance of Componentized.

Class Variable Details

multiComponent

Type:
int
Value:
1                                                                      

temporaryAdapter

Type:
int
Value:
0                                                                      

Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:28:35 2003 http://epydoc.sf.net