doc: Add doc for BasePlugin dependencies and refs
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
e11d42f653
commit
37ddf81fd4
1 changed files with 10 additions and 1 deletions
|
@ -27,7 +27,6 @@ BasePlugin
|
||||||
.. module:: poezio.plugin
|
.. module:: poezio.plugin
|
||||||
|
|
||||||
.. autoclass:: BasePlugin
|
.. autoclass:: BasePlugin
|
||||||
:members: init, cleanup, api, core
|
|
||||||
|
|
||||||
.. method:: init(self)
|
.. method:: init(self)
|
||||||
|
|
||||||
|
@ -49,6 +48,16 @@ BasePlugin
|
||||||
|
|
||||||
The :py:class:`~PluginAPI` instance for this plugin.
|
The :py:class:`~PluginAPI` instance for this plugin.
|
||||||
|
|
||||||
|
.. attribute:: dependencies
|
||||||
|
|
||||||
|
Dependencies on other plugins, as a set of strings. A reference
|
||||||
|
to each dependency will be added in ``refs``.
|
||||||
|
|
||||||
|
.. attribute:: refs
|
||||||
|
|
||||||
|
This attribute is not to be edited by the user. It will be
|
||||||
|
populated when the plugin is initialized with references on each
|
||||||
|
plugin specified in the ``dependencies`` attribute.
|
||||||
|
|
||||||
Each plugin inheriting :py:class:`~BasePlugin` has an ``api`` member variable, which refers
|
Each plugin inheriting :py:class:`~BasePlugin` has an ``api`` member variable, which refers
|
||||||
to a :py:class:`~PluginAPI` object.
|
to a :py:class:`~PluginAPI` object.
|
||||||
|
|
Loading…
Reference in a new issue