Package flumotion :: Package common :: Module common :: Class InitMixin
[show private | hide private]
[frames | no frames]

Type InitMixin

object --+
         |
        InitMixin

Known Subclasses:
BaseComponent

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.
Method Summary
  __init__(self, *args, **kwargs)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Generated by Epydoc 2.1 on Sat Apr 14 13:20:44 2007 http://epydoc.sf.net