restructure

This commit is contained in:
Matthias 2022-05-11 14:54:11 +02:00
parent 9eadcce0eb
commit b1b1db29b9
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -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):
"""