class EventManager:
Method | add |
Register a custom Sphinx event. |
Method | connect |
Connect a handler to specific event. |
Method | disconnect |
Disconnect a handler. |
Method | emit |
Emit a Sphinx event. |
Method | emit_firstresult |
Emit a Sphinx event and returns first result. |
Method | __init__ |
Undocumented |
Instance Variable | app |
Undocumented |
Instance Variable | events |
Undocumented |
Instance Variable | listeners |
Undocumented |
Instance Variable | next_listener_id |
Undocumented |
Parameters | |
name:str | Undocumented |
callback:Callable | Undocumented |
priority:int | Undocumented |
Returns | |
int | Undocumented |
Parameters | |
name:str | Undocumented |
*args:Any | Undocumented |
allowed_exceptions:Tuple[ | Undocumented |
Returns | |
List | Undocumented |
Emit a Sphinx event and returns first result.
This returns the result of the first handler that doesn't return None.
Parameters | |
name:str | Undocumented |
*args:Any | Undocumented |
allowed_exceptions:Tuple[ | Undocumented |
Returns | |
Any | Undocumented |