# Copyright (C) 2014 Jesús Espino <*****@*****.**> # Copyright (C) 2014 David Barragán <*****@*****.**> # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. from django.apps import AppConfig from taiga.contrib_routers import router from .api import GogsViewSet router.register(r"gogs-hook", GogsViewSet, base_name="gogs-hook") class TaigaContribGogsAppConfig(AppConfig): name = "taiga_contrib_gogs" verbose_name = "Taiga contrib gogs App Config" def ready(self): pass
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. from django.apps import AppConfig from django.db.models import signals from . import signal_handlers as handlers from .api import HipChatHookViewSet from taiga.projects.history.models import HistoryEntry # Register route from taiga.contrib_routers import router router.register(r"hipchat", HipChatHookViewSet, base_name="hipchat") def connect_taiga_contrib_hipchat_signals(): signals.post_save.connect(handlers.on_new_history_entry, sender=HistoryEntry, dispatch_uid="taiga_contrib_hipchat") def disconnect_taiga_contrib_hipchat_signals(): signals.post_save.disconnect(dispatch_uid="taiga_contrib_hipchat") class TaigaContribHipChatAppConfig(AppConfig): name = "taiga_contrib_hipchat" verbose_name = "Taiga contrib HipChat App Config"
from django.apps import AppConfig from taiga.contrib_routers import router from .api import IframePluginViewSet # register route router.register(r"iframe", IframePluginViewSet, base_name="iframe") class IframePluginAppConfig(AppConfig): name = "taiga_plugin_iframe" verbose_name = "Taiga Iframe Plugin"
# Copyright (C) 2014 Andrey Antukh <*****@*****.**> # Copyright (C) 2014 Jesús Espino <*****@*****.**> # Copyright (C) 2014 David Barragán <*****@*****.**> # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. from django.apps import AppConfig from taiga.contrib_routers import router from .api import GogsViewSet router.register(r"gogs-hook", GogsViewSet, base_name="gogs-hook") class TaigaContribGogsAppConfig(AppConfig): name = "taiga_contrib_gogs" verbose_name = "Taiga contrib gogs App Config" def ready(self): pass
# License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. from django.apps import AppConfig #from . import signal_handlers as handlers from taiga.projects.deployments.api import DeploymentViewSet # Register route from taiga.contrib_routers import router router.register(r"deployments", DeploymentViewSet, base_name="deployments") def connect_taiga_deployment_signals(): pass class DeploymentsAppConfig(AppConfig): name = "taiga.projects.deployments" verbose_name = "Taiga Deployment App Config" def ready(self): print('test')
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. from django.apps import AppConfig from django.db.models import signals from . import signal_handlers as handlers from .api import HallHookViewSet from taiga.projects.history.models import HistoryEntry # Register route from taiga.contrib_routers import router router.register(r"hall", HallHookViewSet, base_name="hall") def connect_taiga_contrib_hall_signals(): signals.post_save.connect(handlers.on_new_history_entry, sender=HistoryEntry, dispatch_uid="taiga_contrib_hall") def disconnect_taiga_contrib_hall_signals(): signals.post_save.disconnect(dispatch_uid="taiga_contrib_hall") class TaigaContribHallAppConfig(AppConfig): name = "taiga.contrib_hall" verbose_name = "Taiga contrib hall App Config" def ready(self):
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. from django.apps import AppConfig from django.db.models import signals from . import signal_handlers as handlers from .api import HipChatHookViewSet from taiga.projects.history.models import HistoryEntry # Register route from taiga.contrib_routers import router router.register(r"hipchat", HipChatHookViewSet, base_name="hipchat") def connect_taiga_contrib_hipchat_signals(): signals.post_save.connect(handlers.on_new_history_entry, sender=HistoryEntry, dispatch_uid="taiga_contrib_hipchat") def disconnect_taiga_contrib_hipchat_signals(): signals.post_save.disconnect(dispatch_uid="taiga_contrib_hipchat") class TaigaContribHipChatAppConfig(AppConfig): name = "taiga_contrib_hipchat" verbose_name = "Taiga contrib HipChat App Config" def ready(self):
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. from django.apps import AppConfig from django.db.models import signals from . import signal_handlers as handlers from .api import LetsChatHookViewSet from taiga.projects.history.models import HistoryEntry # Register route from taiga.contrib_routers import router router.register(r"letschat", LetsChatHookViewSet, base_name="letschat") def connect_taiga_contrib_letschat_signals(): signals.post_save.connect(handlers.on_new_history_entry, sender=HistoryEntry, dispatch_uid="taiga_contrib_letschat") def disconnect_taiga_contrib_letschat_signals(): signals.post_save.disconnect(dispatch_uid="taiga_contrib_letschat") class TaigaContribLetsChatAppConfig(AppConfig): name = "taiga_contrib_letschat" verbose_name = "Taiga contrib LetsChat App Config" def ready(self):
# GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. from django.apps import AppConfig from django.db.models import signals from . import signal_handlers as handlers from .api import LetsChatHookViewSet from taiga.projects.history.models import HistoryEntry # Register route from taiga.contrib_routers import router router.register(r"letschat", LetsChatHookViewSet, base_name="letschat") def connect_taiga_contrib_letschat_signals(): signals.post_save.connect(handlers.on_new_history_entry, sender=HistoryEntry, dispatch_uid="taiga_contrib_letschat") def disconnect_taiga_contrib_letschat_signals(): signals.post_save.disconnect(dispatch_uid="taiga_contrib_letschat") class TaigaContribLetsChatAppConfig(AppConfig): name = "taiga_contrib_letschat" verbose_name = "Taiga contrib LetsChat App Config"
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. from django.apps import AppConfig from django.db.models import signals from . import signal_handlers as handlers from .api import HallHookViewSet from taiga.projects.history.models import HistoryEntry # Register route from taiga.contrib_routers import router router.register(r"hall", HallHookViewSet, base_name="hall") def connect_taiga_contrib_hall_signals(): signals.post_save.connect(handlers.on_new_history_entry, sender=HistoryEntry, dispatch_uid="taiga_contrib_hall") def disconnect_taiga_contrib_hall_signals(): signals.post_save.disconnect(dispatch_uid="taiga_contrib_hall") class TaigaContribHallAppConfig(AppConfig): name = "taiga_contrib_hall" verbose_name = "Taiga contrib hall App Config"
# This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. from django.apps import AppConfig from django.db.models import signals from .api import DrBeatViewSet from taiga.projects.history.models import HistoryEntry # Register route from taiga.contrib_routers import router router.register(r"drbeat", DrBeatViewSet, base_name="drbeat") class TaigaDrBeatAppConfig(AppConfig): name = "taiga_drbeat" verbose_name = "Taiga Taiga, plz I don't repeat! Dr.Beat!" def ready(self): print ('Dr.Beat is ready!')
from taiga.contrib_routers import router from taiga_contrib_dropbox.api import ContribDropboxOAuth2FlowStartViewSet from taiga_contrib_dropbox.api import ContribDropboxOAuth2FlowFinishViewSet from taiga_contrib_dropbox.api import ContribDropboxUploadIssueAttachmentViewSet from taiga_contrib_dropbox.api import ContribDropboxUploadUserStoryAttachmentViewSet from taiga_contrib_dropbox.api import ContribDropboxUploadTaskAttachmentViewSet from taiga_contrib_dropbox.api import ContribDropboxUploadWikiAttachmentViewSet from taiga_contrib_dropbox.api import ContribDropboxImportProjectViewSet from taiga_contrib_dropbox.api import ContribDropboxProjectPermissionViewSet class TaigaContribDropboxAppConfig(AppConfig): name = "taiga_contrib_dropbox" verbose_name = "Taiga Contrib Dropbox" router.register(r"contrib-dropbox/oauth2_flow/start", ContribDropboxOAuth2FlowStartViewSet, base_name="contrib-dropbox/oauth2_flow/start") router.register(r"contrib-dropbox/oauth2_flow/finish", ContribDropboxOAuth2FlowFinishViewSet, base_name="contrib-dropbox/oauth2_flow/finish") router.register(r"contrib-dropbox/upload_issue_attachment", ContribDropboxUploadIssueAttachmentViewSet, base_name="contrib-dropbox/upload_issue_attachment") router.register(r"contrib-dropbox/upload_userstory_attachment", ContribDropboxUploadUserStoryAttachmentViewSet, base_name="contrib-dropbox/upload_userstory_attachment") router.register(r"contrib-dropbox/upload_task_attachment", ContribDropboxUploadTaskAttachmentViewSet, base_name="contrib-dropbox/upload_task_attachment") router.register(r"contrib-dropbox/upload_wiki_attachment", ContribDropboxUploadWikiAttachmentViewSet, base_name="contrib-dropbox/upload_wiki_attachment")
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. from django.apps import AppConfig from django.db.models import signals from . import signal_handlers as handlers from .api import SlackHookViewSet from taiga.projects.history.models import HistoryEntry # Register route from taiga.contrib_routers import router router.register(r"slack", SlackHookViewSet, base_name="slack") def connect_taiga_contrib_slack_signals(): signals.post_save.connect(handlers.on_new_history_entry, sender=HistoryEntry, dispatch_uid="taiga_contrib_slack") def disconnect_taiga_contrib_slack_signals(): signals.post_save.disconnect(dispatch_uid="taiga_contrib_slack") class TaigaContribSlackAppConfig(AppConfig): name = "taiga_contrib_slack" verbose_name = "Taiga contrib slack App Config"
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. from django.apps import AppConfig from django.db.models import signals from . import signal_handlers as handlers from .api import SlackHookViewSet from taiga.projects.history.models import HistoryEntry # Register route from taiga.contrib_routers import router router.register(r"slack", SlackHookViewSet, base_name="slack") def connect_taiga_contrib_slack_signals(): signals.post_save.connect(handlers.on_new_history_entry, sender=HistoryEntry, dispatch_uid="taiga_contrib_slack") def disconnect_taiga_contrib_slack_signals(): signals.post_save.disconnect(dispatch_uid="taiga_contrib_slack") class TaigaContribSlackAppConfig(AppConfig): name = "taiga_contrib_slack" verbose_name = "Taiga contrib slack App Config" def ready(self):
def ready(self): from taiga.contrib_routers import router from .api import GogsViewSet router.register(r"gogs-hook", GogsViewSet, base_name="gogs-hook")