more regions

This commit is contained in:
Matthias 2021-09-26 15:27:24 +02:00
parent a7cba2320b
commit 95caecafa3
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -15,6 +15,7 @@ import plugins.plugin as plugin
logger = logging.getLogger("inventree")
# region mixins
class MixinBase:
"""general base for mixins"""
@ -51,7 +52,6 @@ class MixinBase:
return mixins
# region mixins
class SettingsMixin:
"""Mixin that enables settings for the plugin"""
class Meta:
@ -159,6 +159,7 @@ class NavigationMixin:
# endregion
# region git-helpers
def get_git_log(path):
"""get dict with info of the last commit to file named in path"""
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',)
R = Definition(key='R', status=2, msg='good signature, revoked key',)
E = Definition(key='E', status=1, msg='cannot be checked',)
# endregion
class IntegrationPlugin(MixinBase, plugin.InvenTreePlugin):
"""