Rename "GlobalSettingsPlugin" -> "SettingsPlugin"

This commit is contained in:
Oliver 2021-12-31 14:25:22 +11:00
parent e02a2cef1b
commit 02e0ea6e3a
3 changed files with 13 additions and 7 deletions

View File

@ -7,7 +7,7 @@ from django.conf.urls import url, include
from plugin.urls import PLUGIN_BASE
class GlobalSettingsMixin:
class SettingsMixin:
"""
Mixin that enables global settings for the plugin
"""

View File

@ -1,6 +1,9 @@
"""utility class to enable simpler imports"""
from ..builtin.integration.mixins import AppMixin, GlobalSettingsMixin, UrlsMixin, NavigationMixin
from ..builtin.integration.mixins import AppMixin, SettingsMixin, UrlsMixin, NavigationMixin
__all__ = [
'AppMixin', 'GlobalSettingsMixin', 'UrlsMixin', 'NavigationMixin',
'AppMixin',
'NavigationMixin',
'SettingsMixin',
'UrlsMixin',
]

View File

@ -1,15 +1,18 @@
"""sample implementations for IntegrationPlugin"""
"""
Sample implementations for IntegrationPlugin
"""
from plugin import IntegrationPluginBase
from plugin.mixins import AppMixin, GlobalSettingsMixin, UrlsMixin, NavigationMixin
from plugin.mixins import AppMixin, SettingsMixin, UrlsMixin, NavigationMixin
from django.http import HttpResponse
from django.utils.translation import ugettext_lazy as _
from django.conf.urls import url, include
class SampleIntegrationPlugin(AppMixin, GlobalSettingsMixin, UrlsMixin, NavigationMixin, IntegrationPluginBase):
class SampleIntegrationPlugin(AppMixin, SettingsMixin, UrlsMixin, NavigationMixin, IntegrationPluginBase):
"""
An full integration plugin
A full integration plugin example
"""
PLUGIN_NAME = "SampleIntegrationPlugin"