mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
struc
This commit is contained in:
parent
90d36069c8
commit
cec29310dc
@ -263,6 +263,7 @@ class IntegrationPluginBase(MixinBase, plugin.InvenTreePlugin):
|
|||||||
|
|
||||||
self.set_sign_values()
|
self.set_sign_values()
|
||||||
|
|
||||||
|
# properties
|
||||||
@property
|
@property
|
||||||
def slug(self):
|
def slug(self):
|
||||||
"""slug for the plugin"""
|
"""slug for the plugin"""
|
||||||
@ -279,6 +280,7 @@ class IntegrationPluginBase(MixinBase, plugin.InvenTreePlugin):
|
|||||||
name = self.plugin_name()
|
name = self.plugin_name()
|
||||||
return name
|
return name
|
||||||
|
|
||||||
|
# mixins
|
||||||
def mixin(self, key):
|
def mixin(self, key):
|
||||||
"""check if mixin is registered"""
|
"""check if mixin is registered"""
|
||||||
return key in self._mixins
|
return key in self._mixins
|
||||||
@ -290,6 +292,7 @@ class IntegrationPluginBase(MixinBase, plugin.InvenTreePlugin):
|
|||||||
return getattr(self, fnc_name, True)
|
return getattr(self, fnc_name, True)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
# git
|
||||||
def get_plugin_commit(self):
|
def get_plugin_commit(self):
|
||||||
"""get last git commit for plugin"""
|
"""get last git commit for plugin"""
|
||||||
return get_git_log(self.def_path)
|
return get_git_log(self.def_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user