Package flumotion :: Package common :: Module common :: Class InitMixin
[hide private]

type InitMixin

source code

object --+
         |
        InitMixin
Known Subclasses:

A mixin class to help with object initialization.

In some class hierarchies, __init__ is only used for initializing instance variables. In these cases it is advantageous to avoid the need to "chain up" to a parent implementation of a method. Adding this class to your hierarchy will, for each class in the object's class hierarchy, call the class's init() implementation on the object.

Note that the function is called init() without underscrores, and that there is no need to chain up to superclasses' implementations.

Uses call_each_method_reversed() internally.

Instance Methods [hide private]
 
__init__(self, *args, **kwargs) source code
 
__providedBy__(...)
Object Specification Descriptor
source code
 
__provides__(...)
Special descriptor for class ``__provides__``
Class Variables [hide private]
  __implemented__ = <implementedBy flumotion.common.common.InitM...
Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 
Overrides: object.__init__
(inherited documentation)

__provides__(...)

 
Special descriptor for class ``__provides__``

The descriptor caches the implementedBy info, so that
we can get declarations for objects without instance-specific
interfaces a bit quicker.


Class Variable Details [hide private]

__implemented__

Value:
<implementedBy flumotion.common.common.InitMixin>