Commit 31e49bf35bbd00a0fdbbc90bdf0fcf994e3e9c64
1 parent
e0dc6a6c
Exists in
master
and in
29 other branches
Renamed ColabProxiedAppConfig to ColabPluginAppConfig
Signed-off-by: Sergio Oliveira <sergio@tracy.com.br>
Showing
5 changed files
with
10 additions
and
10 deletions
Show diff stats
colab/plugins/gitlab/apps.py
1 | 1 | ||
2 | -from ..utils.apps import ColabProxiedAppConfig | 2 | +from ..utils.apps import ColabPluginAppConfig |
3 | from colab.plugins.gitlab.tasks import handling_method | 3 | from colab.plugins.gitlab.tasks import handling_method |
4 | from colab.signals.signals import register_signal, connect_signal | 4 | from colab.signals.signals import register_signal, connect_signal |
5 | 5 | ||
6 | 6 | ||
7 | -class ProxyGitlabAppConfig(ColabProxiedAppConfig): | 7 | +class ProxyGitlabAppConfig(ColabPluginAppConfig): |
8 | name = 'colab.plugins.gitlab' | 8 | name = 'colab.plugins.gitlab' |
9 | verbose_name = 'Gitlab Plugin' | 9 | verbose_name = 'Gitlab Plugin' |
10 | short_name = 'gitlab' | 10 | short_name = 'gitlab' |
colab/plugins/mezuro/apps.py
1 | 1 | ||
2 | -from ..utils.apps import ColabProxiedAppConfig | 2 | +from ..utils.apps import ColabPluginAppConfig |
3 | 3 | ||
4 | 4 | ||
5 | -class ProxyMezuroAppConfig(ColabProxiedAppConfig): | 5 | +class ProxyMezuroAppConfig(ColabPluginAppConfig): |
6 | name = 'colab.plugins.mezuro' | 6 | name = 'colab.plugins.mezuro' |
7 | verbose_name = 'Mezuro Proxy' | 7 | verbose_name = 'Mezuro Proxy' |
colab/plugins/noosfero/apps.py
1 | 1 | ||
2 | -from ..utils.apps import ColabProxiedAppConfig | 2 | +from ..utils.apps import ColabPluginAppConfig |
3 | 3 | ||
4 | 4 | ||
5 | -class ProxyNoosferoAppConfig(ColabProxiedAppConfig): | 5 | +class ProxyNoosferoAppConfig(ColabPluginAppConfig): |
6 | name = 'colab.plugins.noosfero' | 6 | name = 'colab.plugins.noosfero' |
7 | verbose_name = 'Noosfero Proxy' | 7 | verbose_name = 'Noosfero Proxy' |
colab/plugins/utils/apps.py
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | from django.apps import AppConfig | 2 | from django.apps import AppConfig |
3 | 3 | ||
4 | 4 | ||
5 | -class ColabProxiedAppConfig(AppConfig): | 5 | +class ColabPluginAppConfig(AppConfig): |
6 | colab_proxied_app = True | 6 | colab_proxied_app = True |
7 | 7 | ||
8 | def register_signals(self): | 8 | def register_signals(self): |
docs/source/plugindev.rst
@@ -43,16 +43,16 @@ signals structure, some steps are required: | @@ -43,16 +43,16 @@ signals structure, some steps are required: | ||
43 | * With signals registered and handling method defined you must connect them. | 43 | * With signals registered and handling method defined you must connect them. |
44 | To do it you must call connect_signal passing signal name, sender and handling | 44 | To do it you must call connect_signal passing signal name, sender and handling |
45 | method as arguments. These should be implemented on plugin's apps.py. It must | 45 | method as arguments. These should be implemented on plugin's apps.py. It must |
46 | - be said that the plugin app class must extend ColabProxiedAppConfig. An | 46 | + be said that the plugin app class must extend ColabPluginAppConfig. An |
47 | example of this configuration can be seen below: | 47 | example of this configuration can be seen below: |
48 | 48 | ||
49 | 49 | ||
50 | .. code-block:: python | 50 | .. code-block:: python |
51 | - from colab.plugins.utils.apps import ColabProxiedAppConfig | 51 | + from colab.plugins.utils.apps import ColabPluginAppConfig |
52 | from colab.signals.signals import register_signal, connect_signal | 52 | from colab.signals.signals import register_signal, connect_signal |
53 | from colab.plugins.PLUGIN.tasks import HANDLING_METHOD | 53 | from colab.plugins.PLUGIN.tasks import HANDLING_METHOD |
54 | 54 | ||
55 | - class PluginApps(ColabProxiedAppConfig): | 55 | + class PluginApps(ColabPluginAppConfig): |
56 | short_name = PLUGIN_NAME | 56 | short_name = PLUGIN_NAME |
57 | signals_list = [SIGNAL1, SIGNAL2] | 57 | signals_list = [SIGNAL1, SIGNAL2] |
58 | 58 |