From cec29310dc8334c86dd10919b57ea17d759ef1ba Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 4 Oct 2021 19:50:56 +0200 Subject: [PATCH] struc --- InvenTree/plugins/integration.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/InvenTree/plugins/integration.py b/InvenTree/plugins/integration.py index 628293dfbb..246aa34fd4 100644 --- a/InvenTree/plugins/integration.py +++ b/InvenTree/plugins/integration.py @@ -263,6 +263,7 @@ class IntegrationPluginBase(MixinBase, plugin.InvenTreePlugin): self.set_sign_values() + # properties @property def slug(self): """slug for the plugin""" @@ -279,6 +280,7 @@ class IntegrationPluginBase(MixinBase, plugin.InvenTreePlugin): name = self.plugin_name() return name + # mixins def mixin(self, key): """check if mixin is registered""" return key in self._mixins @@ -290,6 +292,7 @@ class IntegrationPluginBase(MixinBase, plugin.InvenTreePlugin): return getattr(self, fnc_name, True) return False + # git def get_plugin_commit(self): """get last git commit for plugin""" return get_git_log(self.def_path)