mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-03 20:20:58 +00:00
* add mixin order ref
* move import
* fix import order
* reorder import
* move activation/deactivation to mixins
* move loaded/unloaded mixins out into seperate modules
* fix deactivation sequence
* switch to classmethods for loading
* only run (de)activation if defined for mixin
Fixes #4184
* fix deactivating
* move reloading back to registry
* fix merge error
* move app mixin deactivation
* fix migration reloading
* reverse deactivation sequence
* Revert "reverse deactivation sequence"
This reverts commit aff17dd07d
.
37 lines
1.2 KiB
Python
37 lines
1.2 KiB
Python
"""Utility class to enable simpler imports."""
|
|
|
|
from common.notifications import (BulkNotificationMethod,
|
|
SingleNotificationMethod)
|
|
|
|
from ..base.action.mixins import ActionMixin
|
|
from ..base.barcodes.mixins import BarcodeMixin
|
|
from ..base.event.mixins import EventMixin
|
|
from ..base.integration.AppMixin import AppMixin
|
|
from ..base.integration.mixins import (APICallMixin, NavigationMixin,
|
|
PanelMixin, SettingsContentMixin,
|
|
ValidationMixin)
|
|
from ..base.integration.ScheduleMixin import ScheduleMixin
|
|
from ..base.integration.SettingsMixin import SettingsMixin
|
|
from ..base.integration.UrlsMixin import UrlsMixin
|
|
from ..base.label.mixins import LabelPrintingMixin
|
|
from ..base.locate.mixins import LocateMixin
|
|
|
|
__all__ = [
|
|
'APICallMixin',
|
|
'AppMixin',
|
|
'EventMixin',
|
|
'LabelPrintingMixin',
|
|
'NavigationMixin',
|
|
'ScheduleMixin',
|
|
'SettingsContentMixin',
|
|
'SettingsMixin',
|
|
'UrlsMixin',
|
|
'PanelMixin',
|
|
'ActionMixin',
|
|
'BarcodeMixin',
|
|
'LocateMixin',
|
|
'ValidationMixin',
|
|
'SingleNotificationMethod',
|
|
'BulkNotificationMethod',
|
|
]
|