mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-16 10:05:18 +00:00
18 lines
827 B
ReStructuredText
18 lines
827 B
ReStructuredText
|
.. _actions:
|
||
|
|
||
|
=======
|
||
|
Actions
|
||
|
=======
|
||
|
|
||
|
Actions are one of the two types of hooks (the other being :ref:`filters`) that can be used to extend Tutor. Each action represents an event that can occur during the application life cycle. Each action has a name, and callback functions can be attached to it. When an action is triggered, these callback functions are called in sequence. Each callback function can trigger side effects, independently from one another.
|
||
|
|
||
|
.. autofunction:: tutor.hooks.actions::get
|
||
|
.. autofunction:: tutor.hooks.actions::get_template
|
||
|
.. autofunction:: tutor.hooks.actions::add
|
||
|
.. autofunction:: tutor.hooks.actions::do
|
||
|
.. autofunction:: tutor.hooks.actions::clear
|
||
|
.. autofunction:: tutor.hooks.actions::clear_all
|
||
|
|
||
|
.. autoclass:: tutor.hooks.actions.Action
|
||
|
.. autoclass:: tutor.hooks.actions.ActionTemplate
|