| Trees | Indices | Help |
|
|---|
|
|
object --+
|
Interface
Base class for all interfaces.
Acts as a factory for instantiating the proper registered adapter for the given Interface subclass and subject. For example, assume INavigable is a subclass of this class. The code:
adapted_object = INavigable(some_object)
will return an object adapting some_object to the INavigable interface if such and adapter exists. If some_object has an attribute called providesInterfaces which contains INavigable, the original object will be returned. If no suitable adapter exists, an exception is raised.
The _get function does most of the work in retrieving an appropriate adapter.
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Mon Jun 30 13:05:50 2008 | http://epydoc.sourceforge.net |