fix up docs

This commit is contained in:
holger krekel
2020-03-03 06:29:05 +01:00
parent a665d6de59
commit a1379f61da
5 changed files with 14 additions and 10 deletions

View File

@@ -79,7 +79,7 @@ def get_dc_event_name(integer, _DC_EVENTNAME_MAP={}):
def register_global_plugin(plugin):
""" Register a global plugin which implements one or more
of the :class:`deltachat.hookspec.Global` specs.
of the :class:`deltachat.hookspec.Global` hooks.
"""
gm = hookspec.Global._get_plugin_manager()
gm.register(plugin)

View File

@@ -160,6 +160,7 @@ class Account(object):
def update_config(self, kwargs):
""" update config values.
:param kwargs: name=value config settings for this account.
values need to be unicode.
:returns: None
@@ -529,7 +530,7 @@ class Account(object):
def add_account_plugin(self, plugin):
""" add an account plugin which implements one or more of
the :class:`deltachat.hookspec.PerAccount` specs.
the :class:`deltachat.hookspec.PerAccount` hooks.
"""
self._pm.register(plugin)
self._pm.check_pending()

View File

@@ -53,7 +53,8 @@ class PerAccount:
class Global:
""" global hook specifications using a per-process singleton plugin manager instance.
""" global hook specifications using a per-process singleton
plugin manager instance.
"""
_plugin_manager = None