Package trac :: Module core :: Class Component

Class Component

source code

object --+
         |
        Component
Known Subclasses:

Base class for components.

Every component can declare what extension points it provides, as well as what extension points of other components it extends.

Nested Classes
  __metaclass__
Meta class for components.
Instance Methods

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods
a new object with type S, a subtype of T
__new__(cls, *args, **kwargs)
Return an existing instance of the component if it has already been activated, otherwise create a new instance.
source code
 
implements(*interfaces)
Can be used in the class definiton of Component subclasses to declare the extension points that are extended.
source code
Properties

Inherited from object: __class__

Method Details

__new__(cls, *args, **kwargs)
Static Method

source code 
Return an existing instance of the component if it has already been activated, otherwise create a new instance.
Returns: a new object with type S, a subtype of T
Overrides: object.__new__