mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
simpler imports
This commit is contained in:
parent
e762ec676d
commit
8ac41970ad
6
InvenTree/plugin/mixins/__init__.py
Normal file
6
InvenTree/plugin/mixins/__init__.py
Normal file
@ -0,0 +1,6 @@
|
||||
"""utility class to enable simpler imports"""
|
||||
from ..builtin.integration.mixins import AppMixin, GlobalSettingsMixin, UrlsMixin, NavigationMixin
|
||||
|
||||
__all__ = [
|
||||
'AppMixin', 'GlobalSettingsMixin', 'UrlsMixin', 'NavigationMixin',
|
||||
]
|
@ -1,6 +1,6 @@
|
||||
"""sample implementation for IntegrationPlugin"""
|
||||
from plugin.integration import IntegrationPluginBase
|
||||
from plugin.builtin.integration.mixins import UrlsMixin
|
||||
from plugin import IntegrationPluginBase
|
||||
from plugin.mixins import UrlsMixin
|
||||
|
||||
|
||||
class NoIntegrationPlugin(IntegrationPluginBase):
|
||||
|
@ -1,5 +1,5 @@
|
||||
"""sample of a broken python file that will be ignroed on import"""
|
||||
from plugin.integration import IntegrationPluginBase
|
||||
from plugin import IntegrationPluginBase
|
||||
|
||||
|
||||
class BrokenIntegrationPlugin(IntegrationPluginBase):
|
||||
|
@ -1,6 +1,6 @@
|
||||
"""sample implementations for IntegrationPlugin"""
|
||||
from plugin.integration import IntegrationPluginBase
|
||||
from plugin.builtin.integration.mixins import AppMixin, GlobalSettingsMixin, UrlsMixin, NavigationMixin
|
||||
from plugin import IntegrationPluginBase
|
||||
from plugin.mixins import AppMixin, GlobalSettingsMixin, UrlsMixin, NavigationMixin
|
||||
|
||||
from django.http import HttpResponse
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
@ -7,8 +7,8 @@ from django.contrib.auth import get_user_model
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
from plugin.integration import IntegrationPluginBase
|
||||
from plugin.builtin.integration.mixins import AppMixin, GlobalSettingsMixin, UrlsMixin, NavigationMixin
|
||||
from plugin import IntegrationPluginBase
|
||||
from plugin.mixins import AppMixin, GlobalSettingsMixin, UrlsMixin, NavigationMixin
|
||||
from plugin.urls import PLUGIN_BASE
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user