API Reference for Enthought Tool Suite 3.2.0
Adapter and Declaration API
ClassTypes = (ClassType, type)
PEP 246-alike: Adapt 'obj' to 'protocol', return 'default'
If 'default' is not supplied and no implementation is found, the result of 'factory(obj,protocol)' is returned. If 'factory' is also not supplied, 'NotImplementedError' is then raised.
Tell an object what it does or doesn't provide
'factory' is an IAdapterFactory providing 'provides' protocols
Declare that 'adapter' adapts 'ob' to 'protocol'
Declare that 'adapter' adapts 'proto' to 'protocol'
Declare that 'adapter' adapts instances of 'typ' to 'protocol'
Declare information about a class, type, or 'IOpenImplementor'
| Local name | Refers to |
|---|---|
| _getframe | sys._getframe |
| AdaptationFailure | enthought.traits.protocols.adapters.AdaptationFailure |
| addClassAdvisor | enthought.traits.protocols.advice.addClassAdvisor |
| bindAdapter | enthought.traits.protocols.adapters.bindAdapter |
| ClassType | types.ClassType |
| DOES_NOT_SUPPORT | enthought.traits.protocols.adapters.DOES_NOT_SUPPORT |
| exc_info | sys.exc_info |
| getFrameInfo | enthought.traits.protocols.advice.getFrameInfo |
| Interface | enthought.traits.protocols.interfaces.Interface |
| InterfaceClass | enthought.traits.protocols.interfaces.InterfaceClass |
| IOpenImplementor | enthought.traits.protocols.interfaces.IOpenImplementor |
| IOpenProtocol | enthought.traits.protocols.interfaces.IOpenProtocol |
| IOpenProvider | enthought.traits.protocols.interfaces.IOpenProvider |
| modules | sys.modules |
| NO_ADAPTER_NEEDED | enthought.traits.protocols.adapters.NO_ADAPTER_NEEDED |
| Protocol | enthought.traits.protocols.interfaces.Protocol |
© Copyright 2002-2009 Enthought, Inc.