Docs: Some small changes as followup to #2176

This commit is contained in:
Gina Häußge 2017-11-03 11:33:47 +01:00
parent 5f34d5df27
commit 2fcbf49348
2 changed files with 14 additions and 16 deletions

View file

@ -39,8 +39,7 @@ Retrieve installed language packs
"_core": {
"identifier": "_core",
"name": "Core",
"languages": [
]
"languages": []
},
"some_plugin": {
"identifier": "some_plugin",
@ -122,8 +121,7 @@ Delete a language pack
"_core": {
"identifier": "_core",
"name": "Core",
"languages": [
]
"languages": []
},
"some_plugin": {
"identifier": "some_plugin",

View file

@ -94,23 +94,23 @@ octoprint.plugin.pluginmanager.reconnect_hooks
.. py:function:: reconnect_hooks_hook(*args, **kwargs)
Returns additional hooks defined by the plugin for which the plugin manager
should display the "You should reconnect to your printer" message on plugin
install/uninstall/enabling/disabling.
Returns additional hooks defined by the plugin for which the plugin manager
should display the "You should reconnect to your printer" message on plugin
install/uninstall/enabling/disabling.
Handlers should return a Python list containing the affected hook names.
Handlers should return a Python list containing the affected hook names.
**Example**
**Example**
.. code-block:: python
.. code-block:: python
def reconnect_hooks_hook(*args, **kwargs):
return ["octoprint.plugin.exampleplugin.some_custom_hook",
"octoprint.plugin.exampleplugin.some_other_custom_hook"]
def reconnect_hooks_hook(*args, **kwargs):
return ["octoprint.plugin.exampleplugin.some_custom_hook",
"octoprint.plugin.exampleplugin.some_other_custom_hook"]
__plugin_hooks__ = {
"octoprint.plugin.pluginmanager.reconnect_hooks": reconnect_hooks_hook
}
__plugin_hooks__ = {
"octoprint.plugin.pluginmanager.reconnect_hooks": reconnect_hooks_hook
}
.. _sec-bundledplugins-pluginmanager-sourcecode: