Module Expr Str Assign NameStore ListLoad Assign NameStore Dict FunctionDef arguments args NameParam defaults body Expr Str For NameStore NameLoad body If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotIn NameLoad Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Dict Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotIn NameLoad SubscriptLoad NameLoad Index NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad NameLoad Return Num decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotIn NameLoad NameLoad body Return NameLoad If CompareNotIn NameLoad NameLoad body Return NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Delete SubscriptDel SubscriptLoad NameLoad Index NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str If BoolOpOr CompareNotIn NameLoad NameLoad CompareNotIn NameLoad NameLoad body Return Num For NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr body Expr Call NameLoad NameLoad NameLoad Return Num decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign NameStore ListLoad If BoolOpOr CompareNotIn NameLoad NameLoad CompareNotIn NameLoad NameLoad body Return NameLoad For NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Continue AugAssignAdd NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Assign NameStore Dict If BoolOpOr CompareNotIn NameLoad NameLoad CompareNotIn NameLoad NameLoad body Return NameLoad For NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr body Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Continue For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list
N/A N/A 
:mod:`EVENTS` --- simple EVENTS handling
----------------------------------------

This module provides a simple way of managing EVENTS between Modoboa
core application and additional components.

 N/A EVENTS N/A N/A CALLBACKS N/A declare N/A N/A nevents N/A N/A N/A Declare new events.

    :param list nevents: a list of event names
     N/A evt nevents N/A N/A N/A evt EVENTS N/A N/A N/A N/A EVENTS append evt N/A register N/A N/A event callback N/A N/A N/A Register a plugin callback for a specific event

    The event must be declared in this module.

    :param event: the event to listen to
    :param callback: a function to execute when the event is raised
     N/A N/A event N/A N/A CALLBACKS keys N/A N/A N/A CALLBACKS N/A event N/A N/A fullname N/A %s.%s N/A N/A callback __module__ N/A callback __name__ N/A N/A fullname N/A CALLBACKS N/A event N/A N/A N/A N/A CALLBACKS N/A event N/A fullname callback N/A 1 N/A observe N/A object N/A N/A Event observing decorator.

    Automatically register the decorated function to observe the given
    event.

    :param evtnames: a list of event names
     __init__ N/A N/A self N/A evtnames kwargs N/A N/A N/A self evtnames evtnames N/A __call__ N/A N/A self f N/A N/A N/A evt N/A self evtnames N/A N/A N/A register evt f N/A f N/A N/A unregister N/A N/A event callback N/A N/A N/A Unregister a callback for a specific event

    :param event: the targeted event
    :param callback: the callback to remove
     N/A N/A event EVENTS N/A N/A False N/A N/A event CALLBACKS N/A N/A False N/A fullname N/A %s.%s N/A N/A callback __module__ N/A callback __name__ N/A N/A N/A N/A N/A CALLBACKS N/A event N/A fullname N/A N/A N/A KeyError N/A N/A N/A raiseEvent N/A N/A event N/A args kwargs N/A N/A Raise a specific event

    Any additional keyword argument will be passed to registered
    CALLBACKS.

    :param event: the event to raise
     N/A N/A N/A event EVENTS N/A event CALLBACKS N/A N/A 0 N/A callback N/A N/A N/A CALLBACKS N/A event values N/A N/A N/A callback args kwargs N/A 1 N/A raiseQueryEvent N/A N/A event N/A args kwargs N/A N/A Raise a specific event and wait for answers from CALLBACKS

    Any additional keyword argument will be passed to registered
    CALLBACKS. Callback answers are returned as a list.

    :param event: the event to raise
     N/A result N/A N/A N/A N/A event EVENTS N/A event CALLBACKS N/A N/A result N/A callback N/A N/A N/A CALLBACKS N/A event values N/A N/A tmp N/A callback args kwargs N/A N/A tmp None N/A N/A N/A result tmp N/A result N/A raiseDictEvent N/A N/A event N/A args N/A N/A Raise a specific event and return result as a dictionnary

    Any additional keyword argument will be passed to registered
    CALLBACKS. Callback answers must be dictionnaries.

    :param event: the event to raise
    :return: a dictionnary
     N/A result N/A N/A N/A N/A event EVENTS N/A event CALLBACKS N/A N/A result N/A callback N/A N/A N/A CALLBACKS N/A event values N/A N/A tmp N/A callback args N/A N/A tmp None N/A N/A N/A N/A k v N/A N/A tmp iteritems N/A N/A N/A result N/A k v N/A result N/A