Module Expr Str ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Dict FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore TupleLoad NameLoad NameLoad NameLoad TryExcept body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Str Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore TupleLoad Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Return Call Call Call NameLoad NameLoad NameLoad TupleLoad NameLoad Dict NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Delete SubscriptDel NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad AttributeLoad NameLoad attr orelse If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num orelse Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad Str attr GeneratorExp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Call AttributeLoad Str attr GeneratorExp BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse If Call NameLoad NameLoad NameLoad body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str With AttributeLoad NameLoad attr body If BoolOpAnd CompareGtE NameLoad Num BoolOpOr CompareLt AttributeLoad NameLoad attr Num CompareGt AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd CompareEq AttributeLoad NameLoad attr Num CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Str Str NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad Call NameLoad NameLoad body Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad decorator_list
N/A N/A 
This module defines the basic event class and common events.
 inspect ismethod traceback format_tb EventType N/A type N/A N/A __cache__ N/A __new__ N/A N/A cls name bases ns N/A N/A N/A key N/A cls name bases N/A N/A N/A N/A N/A cls __cache__ N/A key N/A N/A N/A KeyError N/A N/A cls N/A N/A type __new__ cls name bases ns N/A N/A setattr cls name N/A N/A ns get name N/A cls __name__ N/A cls N/A N/A Event N/A object N/A N/A __metaclass__ EventType N/A channels N/A N/A The channels this message is sent to. N/A parent None N/A notify False N/A success False N/A failure False N/A complete False N/A alert_done False N/A waitingHandlers 0 create N/A N/A cls _name N/A args kwargs N/A N/A N/A N/A N/A type cls _name N/A cls N/A args kwargs N/A classmethod child N/A N/A self name N/A args kwargs N/A N/A e N/A N/A Event create N/A N/A {0:s}_{1:s} format N/A self name name args kwargs N/A N/A e parent self N/A e N/A __init__ N/A N/A self N/A args kwargs N/A N/A An event is a message send to one or more channels.
        It is eventually dispatched to all components
        that have handlers for one of the channels and the event type.

        All normal arguments and keyword arguments passed to the constructor
        of an event are passed on to the handler. When declaring a
        handler, its argument list must therefore match the arguments
        used for creating the event.

        Every event has a :attr:`name` attribute that is used for matching
        the event with the handlers.

        :cvar channels: an optional attribute that may be set before firing
            the event. If defined (usually as a class variable), the attribute
            specifies the channels that the event should be delivered
            to as a tuple. This overrides the default behavior
            of sending the event to the firing component's channel.

            When an event is fired, the value in this attribute
            is replaced for the instance with the channels that
            the event is actually sent to. This information may be used
            e.g. when the event is passed as a parameter to a handler.

        :ivar value: this is a :class:`circuits.core.values.Value`
            object that holds the results returned by the handlers invoked
            for the event.

        :var success: if this optional attribute is set to
            ``True``, an associated event ``success`` (original name
            with "_success" appended) will automatically be fired when all
            handlers for the event have been invoked successfully.

        :var success_channels: the success event is, by default, delivered
            to same channels as the successfully dispatched event itself.
            This may be overridden by specifying an alternative list of
            destinations using this attribute.

        :var complete: if this optional attribute is set to
            ``True``, an associated event ``complete`` (original name
            with "_complete" appended) will automatically be fired when all
            handlers for the event and all events fired by these handlers
            (recursively) have been invoked successfully.

        :var complete_channels: the complete event is, by default, delivered
            to same channels as the initially dispatched event itself.
            This may be overridden by specifying an alternative list of
            destinations using this attribute.
         N/A N/A self args N/A list args N/A N/A self kwargs kwargs N/A N/A self uid None N/A N/A self value None N/A N/A self handler None N/A N/A self stopped False N/A N/A self cancelled False N/A N/A N/A hasattr self name N/A N/A N/A self name N/A N/A self __class__ __name__ N/A __getstate__ N/A N/A self N/A N/A N/A odict N/A N/A N/A self __dict__ copy N/A N/A odict N/A handler N/A odict N/A __setstate__ N/A N/A self dict N/A N/A N/A N/A N/A N/A self __dict__ update dict N/A __le__ N/A N/A self other N/A N/A N/A False N/A __gt__ N/A N/A self other N/A N/A N/A False N/A __repr__ N/A N/A self N/A N/A N/A x.__repr__() <==> repr(x) N/A N/A N/A len N/A self channels 1 N/A N/A channels N/A repr N/A self channels N/A N/A N/A N/A len N/A self channels 1 N/A N/A channels N/A str N/A N/A self channels N/A 0 N/A N/A channels N/A data N/A %s %s N/A N/A N/A ,  join N/A N/A repr arg N/A arg N/A self args N/A N/A ,  join N/A N/A %s=%s N/A k N/A repr v N/A N/A k v N/A N/A N/A self kwargs items N/A N/A <%s[%s] (%s)> N/A N/A self name channels data N/A __getitem__ N/A N/A self x N/A N/A N/A x.__getitem__(y) <==> x[y]

        Get and return data from the event object requested by "x".
        If an int is passed to x, the requested argument from self.args
        is returned index by x. If a str is passed to x, the requested
        keyword argument from self.kwargs is returned keyed by x.
        Otherwise a TypeError is raised as nothing else is valid.
         N/A N/A isinstance x int N/A N/A N/A N/A self args N/A x N/A N/A N/A isinstance x str N/A N/A N/A N/A self kwargs N/A x N/A N/A N/A TypeError N/A Expected int or str, got %r N/A type x N/A __setitem__ N/A N/A self i y N/A N/A N/A x.__setitem__(i, y) <==> x[i] = y

        Modify the data in the event object requested by "x".
        If i is an int, the ith requested argument from self.args
        shall be changed to y. If i is a str, the requested value
        keyed by i from self.kwargs, shall by changed to y.
        Otherwise a TypeError is raised as nothing else is valid.
         N/A N/A isinstance i int N/A N/A N/A N/A self args N/A i y N/A N/A N/A isinstance i str N/A N/A N/A N/A self kwargs N/A i y N/A N/A N/A TypeError N/A Expected int or str, got %r N/A type i N/A cancel N/A N/A self N/A N/A N/A Cancel the event from being processed (if not already) N/A N/A self cancelled True N/A stop N/A N/A self N/A N/A N/A Stop further processing of this event N/A N/A self stopped True N/A N/A exception N/A Event N/A N/A exception Event

    This event is sent for any exceptions that occur during the execution
    of an event Handler that is not SystemExit or KeyboardInterrupt.

    :param type: type of exception
    :type  type: type

    :param value: exception object
    :type  value: exceptions.Exceptions

    :param traceback: traceback of exception
    :type  traceback: traceback

    :param handler: handler that raised the exception
    :type  handler: @handler(<method>)

    :param fevent: event that failed
    :type  fevent: event
     __init__ N/A N/A self type value traceback handler fevent N/A None None N/A N/A N/A N/A N/A super exception self __init__ type value N/A N/A self format_traceback traceback handler handler fevent fevent N/A format_traceback N/A N/A self traceback N/A N/A N/A N/A format_tb traceback N/A N/A started N/A Event N/A N/A started Event

    This Event is sent when a Component or Manager has started running.

    :param manager: The component or manager that was started
    :type  manager: Component or Manager
     __init__ N/A N/A self manager N/A N/A N/A N/A N/A N/A super started self __init__ manager N/A N/A stopped N/A Event N/A N/A stopped Event

    This Event is sent when a Component or Manager has stopped running.

    :param manager: The component or manager that has stopped
    :type  manager: Component or Manager
     __init__ N/A N/A self manager N/A N/A N/A N/A N/A N/A super stopped self __init__ manager N/A N/A signal N/A Event N/A N/A signal Event

    This Event is sent when a Component receives a signal.

    :param signo: The signal number received.
    :type  int:   An int value for the signal

    :param stack:  The interrupted stack frame.
    :type  object: A stack frame
     __init__ N/A N/A self signo stack N/A N/A N/A N/A N/A N/A super signal self __init__ signo stack N/A N/A registered N/A Event N/A N/A registered Event

    This Event is sent when a Component has registered with another Component
    or Manager. This Event is only sent if the Component or Manager being
    registered which is not itself.

    :param component: The Component being registered
    :type  component: Component

    :param manager: The Component or Manager being registered with
    :type  manager: Component or Manager
     __init__ N/A N/A self component manager N/A N/A N/A N/A N/A N/A super registered self __init__ component manager N/A N/A unregistered N/A Event N/A N/A unregistered Event

    This Event is sent when a Component has been unregistered from its
    Component or Manager.
     N/A generate_events N/A Event N/A N/A generate_events Event

    This Event is sent by the circuits core. All components that generate
    timed events or events from external sources (e.g. data becoming
    available) should fire any pending events in their "generate_events"
    handler.

    The handler must either call :meth:`~stop` (*preventing other handlers
    from being called in the same iteration)
    or must invoke :meth:`~.reduce_time_left` with parameter 0.

    :param max_wait: maximum time available for generating events.
    :type  time_left: float

    Components that actually consume time waiting for events to be generated,
    thus suspending normal execution, must provide a method ``resume``
    that interrupts waiting for events.
     __init__ N/A N/A self lock max_wait N/A N/A N/A N/A N/A N/A super generate_events self __init__ N/A N/A self _time_left max_wait N/A N/A self _lock lock N/A time_left N/A N/A self N/A N/A N/A 
        The time left for generating events. A value less than 0
        indicates unlimited time. You should have only
        one component in your system (usually a poller component) that
        spends up to "time left" until it generates an event.
         N/A N/A self _time_left N/A property reduce_time_left N/A N/A self time_left N/A N/A N/A 
        Update the time left for generating events. This is typically
        used by event generators that currently don't want to generate
        an event but know that they will within a certain time. By
        reducing the time left, they make sure that they are reinvoked
        when the time for generating the event has come (at the latest).

        This method can only be used to reduce the time left. If the
        parameter is larger than the current value of time left, it is
        ignored.

        If the time left is reduced to 0 and the event is currently
        being handled, the handler's *resume* method is invoked.
         N/A N/A self _lock N/A N/A N/A N/A time_left 0 N/A N/A N/A self _time_left 0 N/A N/A self _time_left time_left N/A N/A N/A self _time_left time_left N/A N/A N/A N/A self _time_left 0 N/A N/A self handler None N/A N/A m N/A getattr N/A getattr N/A self handler im_self N/A getattr N/A self handler __self__ resume None N/A N/A N/A m None N/A ismethod m N/A N/A N/A m N/A lock N/A N/A self N/A N/A N/A N/A self _lock N/A property N/A