From 1d718adce44f66ea6b04fdc904ed1ac16f1dc6e6 Mon Sep 17 00:00:00 2001 From: Eeshan Garg Date: Tue, 5 Feb 2019 17:53:46 -0330 Subject: [PATCH] zerver/views: Rename integrations.py to documentation.py. The name "integrations" is misleading because we now also use this module for our REST API docs. --- zerver/tests/test_docs.py | 2 +- zerver/views/{integrations.py => documentation.py} | 0 zproject/urls.py | 8 ++++---- 3 files changed, 5 insertions(+), 5 deletions(-) rename zerver/views/{integrations.py => documentation.py} (100%) diff --git a/zerver/tests/test_docs.py b/zerver/tests/test_docs.py index 33a7fae9f3..f2cbe1594a 100644 --- a/zerver/tests/test_docs.py +++ b/zerver/tests/test_docs.py @@ -16,7 +16,7 @@ from zerver.lib.test_helpers import HostRequestMock from zerver.lib.test_runner import slow from zerver.lib.utils import split_by from zerver.models import Realm, get_realm -from zerver.views.integrations import ( +from zerver.views.documentation import ( add_api_uri_context, ) diff --git a/zerver/views/integrations.py b/zerver/views/documentation.py similarity index 100% rename from zerver/views/integrations.py rename to zerver/views/documentation.py diff --git a/zproject/urls.py b/zproject/urls.py index d026c0cea5..7892480085 100644 --- a/zproject/urls.py +++ b/zproject/urls.py @@ -8,7 +8,7 @@ import os import zerver.forms from zproject import dev_urls from zproject.legacy_urls import legacy_urls -from zerver.views.integrations import IntegrationView, MarkdownDirectoryView +from zerver.views.documentation import IntegrationView, MarkdownDirectoryView from zerver.lib.integrations import WEBHOOK_INTEGRATIONS from zerver.webhooks import github_dispatcher @@ -28,7 +28,7 @@ import zerver.views.registration import zerver.views.zephyr import zerver.views.users import zerver.views.unsubscribe -import zerver.views.integrations +import zerver.views.documentation import zerver.views.user_groups import zerver.views.user_settings import zerver.views.muting @@ -508,8 +508,8 @@ i18n_urls = [ # API and integrations documentation url(r'^integrations/doc-html/(?P[^/]*)$', - zerver.views.integrations.integration_doc, - name="zerver.views.integrations.integration_doc"), + zerver.views.documentation.integration_doc, + name="zerver.views.documentation.integration_doc"), url(r'^integrations/(.*)', IntegrationView.as_view()), url(r'^team/$', zerver.views.users.team_view), url(r'^history/$', TemplateView.as_view(template_name='zerver/history.html')),