From b1b1db29b9de7097e59631a46852e5005470b38f Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 11 May 2022 14:54:11 +0200 Subject: [PATCH] restructure --- InvenTree/plugin/plugin.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/InvenTree/plugin/plugin.py b/InvenTree/plugin/plugin.py index 0eefe42080..6cb079c05f 100644 --- a/InvenTree/plugin/plugin.py +++ b/InvenTree/plugin/plugin.py @@ -201,21 +201,6 @@ class InvenTreePlugin(MixinBase, MetaBase): self.define_package() - @property - def _is_package(self): - """ - Is the plugin delivered as a package - """ - return getattr(self, 'is_package', False) - - @property - def is_sample(self): - """ - Is this plugin part of the samples? - """ - path = str(self.package_path) - return path.startswith('plugin/samples/') - # region properties @property def description(self): @@ -278,6 +263,21 @@ class InvenTreePlugin(MixinBase, MetaBase): return lic # endregion + @property + def _is_package(self): + """ + Is the plugin delivered as a package + """ + return getattr(self, 'is_package', False) + + @property + def is_sample(self): + """ + Is this plugin part of the samples? + """ + path = str(self.package_path) + return path.startswith('plugin/samples/') + @property def package_path(self): """