2014-09-05 15:11:11 +00:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
|
|
|
|
|
import octoprint.plugin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TestStartupPlugin(octoprint.plugin.StartupPlugin):
|
2015-09-04 14:43:10 +00:00
|
|
|
def get_sorting_key(self, context=None):
|
|
|
|
|
if context == "sorting_test":
|
|
|
|
|
return 10
|
|
|
|
|
else:
|
|
|
|
|
return None
|
2014-09-05 15:11:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
__plugin_name__ = "Startup Plugin"
|
|
|
|
|
__plugin_description__ = "Test startup plugin"
|
2015-09-04 14:43:10 +00:00
|
|
|
__plugin_implementation__ = TestStartupPlugin()
|