simpler imports

This commit is contained in:
Matthias 2021-11-20 17:46:50 +01:00
parent e762ec676d
commit 8ac41970ad
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
5 changed files with 13 additions and 7 deletions

View 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',
]

View File

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

View File

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

View File

@ -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 _

View File

@ -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