Fix & Docs: Plugins may only have one mixin implementation

Multiple mixins are allowed of course. Allowing multiple implementations lead to too many problems due to plugin names for referring to the APIs of SimpleApiPlugins or the assets of AssetPlugins.

 Hence __plugin_implementations__ has been deprecated in favor of __plugin_implementation__. The plugin subsystem will automatically copy the first implementation from __plugin_implementations__ to __plugin_implementation__ and log a deprecation warning.

 Adjusted documentation accordingly. Also added docs for helpers.
This commit is contained in:
Gina Häußge committed 2015-03-30 16:50:06 +02:00
1 parent 79336ca108
commit 8ff0096eb6
24 files changed
+404 -146

No files matched your search

+1 -1
View File
@@ -9,4 +9,4 @@ class TestSettingsPlugin(octoprint.plugin.SettingsPlugin):
__plugin_name__ = "Settings Plugin"
__plugin_description__ = "Test settings plugin"
__plugin_implementations__ = (TestSettingsPlugin(),)
__plugin_implementation__ = TestSettingsPlugin()