mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
more regions
This commit is contained in:
parent
a7cba2320b
commit
95caecafa3
@ -15,6 +15,7 @@ import plugins.plugin as plugin
|
|||||||
logger = logging.getLogger("inventree")
|
logger = logging.getLogger("inventree")
|
||||||
|
|
||||||
|
|
||||||
|
# region mixins
|
||||||
class MixinBase:
|
class MixinBase:
|
||||||
"""general base for mixins"""
|
"""general base for mixins"""
|
||||||
|
|
||||||
@ -51,7 +52,6 @@ class MixinBase:
|
|||||||
return mixins
|
return mixins
|
||||||
|
|
||||||
|
|
||||||
# region mixins
|
|
||||||
class SettingsMixin:
|
class SettingsMixin:
|
||||||
"""Mixin that enables settings for the plugin"""
|
"""Mixin that enables settings for the plugin"""
|
||||||
class Meta:
|
class Meta:
|
||||||
@ -159,6 +159,7 @@ class NavigationMixin:
|
|||||||
# endregion
|
# endregion
|
||||||
|
|
||||||
|
|
||||||
|
# region git-helpers
|
||||||
def get_git_log(path):
|
def get_git_log(path):
|
||||||
"""get dict with info of the last commit to file named in path"""
|
"""get dict with info of the last commit to file named in path"""
|
||||||
path = path.replace(os.path.dirname(settings.BASE_DIR), '')[1:]
|
path = path.replace(os.path.dirname(settings.BASE_DIR), '')[1:]
|
||||||
@ -195,7 +196,7 @@ class GitStatus:
|
|||||||
Y = Definition(key='Y', status=1, msg='good signature, expired key',)
|
Y = Definition(key='Y', status=1, msg='good signature, expired key',)
|
||||||
R = Definition(key='R', status=2, msg='good signature, revoked key',)
|
R = Definition(key='R', status=2, msg='good signature, revoked key',)
|
||||||
E = Definition(key='E', status=1, msg='cannot be checked',)
|
E = Definition(key='E', status=1, msg='cannot be checked',)
|
||||||
|
# endregion
|
||||||
|
|
||||||
class IntegrationPlugin(MixinBase, plugin.InvenTreePlugin):
|
class IntegrationPlugin(MixinBase, plugin.InvenTreePlugin):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user