(self, *args, **kwargs)
initializes x; see x.__class__.__doc__ for signature
initializes x; see x.__class__.__doc__ for signature
initializes x ; see x . __class__ . __doc__ for signature
def __init__(self, *args, **kwargs):
        "initializes x; see x.__class__.__doc__ for signature"

        super(BaseComponent, self).__init__(*args, **kwargs)

        self.channel = kwargs.get("channel", self.channel) or "*"

        for k, v in getmembers(self):
            if getattr(v, "handler", False) is True:
                self.addHandler(v)
            # TODO: Document this feature. See Issue #88
            if v is not self and isinstance(v, BaseComponent) \
                    and v not in ('parent', 'root'):
                v.register(self)

        if hasattr(self, "init") and isinstance(self.init, Callable):
            self.init(*args, **kwargs)

        @handler("prepare_unregister_complete", channel=self)
        def _on_prepare_unregister_complete(self, event, e, value):
            self._do_prepare_unregister_complete(event.parent, value)
        self.addHandler(_on_prepare_unregister_complete)
def __init__ ( self , * args , * * kwargs ) : super ( BaseComponent , self ) . __init__ ( * args , * * kwargs ) self . channel = kwargs . get ( "channel" , self . channel ) or "*" for k , v in getmembers ( self ) : if getattr ( v , "handler" , False ) is True : self . addHandler ( v ) # TODO: Document this feature. See Issue #88 if v is not self and isinstance ( v , BaseComponent ) and v not in ( 'parent' , 'root' ) : v . register ( self ) if hasattr ( self , "init" ) and isinstance ( self . init , Callable ) : self . init ( * args , * * kwargs ) @ handler ( "prepare_unregister_complete" , channel = self ) def _on_prepare_unregister_complete ( self , event , e , value ) : self . _do_prepare_unregister_complete ( event . parent , value ) self . addHandler ( _on_prepare_unregister_complete )