Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
refactor: Rename and move app_filters.py.
Suyash Vardhan Mathur001435a297da
diff --git a/tools/test-backend b/tools/test-backendindex 3c0b8df9827..4a281922e56 100755--- a/tools/test-backend+++ b/tools/test-backend@@ -98,7 +98,7 @@ not_yet_fully_covered = ["zerver/lib/unminify.py","zerver/lib/utils.py","zerver/lib/zephyr.py",- "zerver/templatetags/app_filters.py",+ "zerver/lib/templates.py","zerver/templatetags/minified_js.py",# Low priority for coverage"zerver/lib/ccache.py",diff --git a/zerver/lib/send_email.py b/zerver/lib/send_email.pyindex 93b1f1c7f40..b4638f4c2f7 100644--- a/zerver/lib/send_email.py+++ b/zerver/lib/send_email.py@@ -482,7 +482,7 @@ def send_custom_email(users: List[UserProfile], options: Dict[str, Any]) -> Nonewith open(plain_text_template_path, "w") as f:f.write(parsed_email_template.get_payload())- from zerver.templatetags.app_filters import render_markdown_path+ from zerver.lib.templates import render_markdown_pathrendered_input = render_markdown_path(plain_text_template_path.replace("templates/", ""))diff --git a/zerver/templatetags/app_filters.py b/zerver/lib/templates.pysimilarity index 100%rename from zerver/templatetags/app_filters.pyrename to zerver/lib/templates.pydiff --git a/zerver/templatetags/__init__.py b/zerver/templatetags/__init__.pydeleted file mode 100644index e69de29bb2d..00000000000diff --git a/zerver/views/documentation.py b/zerver/views/documentation.pyindex f06157a98be..05c2303f95d 100644--- a/zerver/views/documentation.py+++ b/zerver/views/documentation.py@@ -14,9 +14,9 @@ from zerver.decorator import add_google_analytics_contextfrom zerver.lib.integrations import CATEGORIES, INTEGRATIONS, HubotIntegration, WebhookIntegrationfrom zerver.lib.request import REQ, has_request_variablesfrom zerver.lib.subdomains import get_subdomain+from zerver.lib.templates import render_markdown_pathfrom zerver.models import Realmfrom zerver.openapi.openapi import get_endpoint_from_operationid, get_openapi_summary-from zerver.templatetags.app_filters import render_markdown_pathdef add_api_uri_context(context: Dict[str, Any], request: HttpRequest) -> None:diff --git a/zproject/jinja2/__init__.py b/zproject/jinja2/__init__.pyindex bd9018b7ed8..683335d1c19 100644--- a/zproject/jinja2/__init__.py+++ b/zproject/jinja2/__init__.py@@ -10,7 +10,7 @@ from jinja2 import Environmentfrom two_factor.templatetags.two_factor import device_actionfrom zerver.context_processors import DEFAULT_PAGE_PARAMS-from zerver.templatetags.app_filters import display_list, render_markdown_path, webpack_entry+from zerver.lib.templates import display_list, render_markdown_path, webpack_entrydef json_dumps(obj: object) -> str: