mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
fix imports
This commit is contained in:
parent
1da12fe5ff
commit
4ae5ed36a7
@ -3,8 +3,7 @@ Utility file to enable simper imports
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from .registry import registry
|
from .registry import registry
|
||||||
from .plugin import InvenTreePluginBase
|
from .plugin import InvenTreePluginBase, IntegrationPluginBase
|
||||||
from .integration import IntegrationPluginBase
|
|
||||||
from .base.action.action import ActionPlugin
|
from .base.action.action import ActionPlugin
|
||||||
|
|
||||||
from .helpers import MixinNotImplementedError, MixinImplementationError
|
from .helpers import MixinNotImplementedError, MixinImplementationError
|
||||||
|
@ -5,13 +5,13 @@ import logging
|
|||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
from plugin.base.action.mixins import ActionMixin
|
from plugin.base.action.mixins import ActionMixin
|
||||||
import plugin.integration
|
import plugin.plugin
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger("inventree")
|
logger = logging.getLogger("inventree")
|
||||||
|
|
||||||
|
|
||||||
class ActionPlugin(ActionMixin, plugin.integration.IntegrationPluginBase):
|
class ActionPlugin(ActionMixin, plugin.plugin.IntegrationPluginBase):
|
||||||
"""
|
"""
|
||||||
Legacy action definition - will be replaced
|
Legacy action definition - will be replaced
|
||||||
Please use the new Integration Plugin API and the Action mixin
|
Please use the new Integration Plugin API and the Action mixin
|
||||||
|
@ -31,7 +31,7 @@ except: # pragma: no cover
|
|||||||
from maintenance_mode.core import maintenance_mode_on
|
from maintenance_mode.core import maintenance_mode_on
|
||||||
from maintenance_mode.core import get_maintenance_mode, set_maintenance_mode
|
from maintenance_mode.core import get_maintenance_mode, set_maintenance_mode
|
||||||
|
|
||||||
from .integration import IntegrationPluginBase
|
from .plugin import IntegrationPluginBase
|
||||||
from .helpers import handle_error, log_error, get_plugins, IntegrationPluginError
|
from .helpers import handle_error, log_error, get_plugins, IntegrationPluginError
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user