mirror of https://github.com/zulip/zulip.git
refactor: Rename and move app_filters.py.
Moved the code in zerver/templatetags/app_filters.py to more intuitive location and name at zerver/lib/templates.py.
This commit is contained in:
parent
274f73d117
commit
001435a297
|
@ -98,7 +98,7 @@ not_yet_fully_covered = [
|
||||||
"zerver/lib/unminify.py",
|
"zerver/lib/unminify.py",
|
||||||
"zerver/lib/utils.py",
|
"zerver/lib/utils.py",
|
||||||
"zerver/lib/zephyr.py",
|
"zerver/lib/zephyr.py",
|
||||||
"zerver/templatetags/app_filters.py",
|
"zerver/lib/templates.py",
|
||||||
"zerver/templatetags/minified_js.py",
|
"zerver/templatetags/minified_js.py",
|
||||||
# Low priority for coverage
|
# Low priority for coverage
|
||||||
"zerver/lib/ccache.py",
|
"zerver/lib/ccache.py",
|
||||||
|
|
|
@ -482,7 +482,7 @@ def send_custom_email(users: List[UserProfile], options: Dict[str, Any]) -> None
|
||||||
with open(plain_text_template_path, "w") as f:
|
with open(plain_text_template_path, "w") as f:
|
||||||
f.write(parsed_email_template.get_payload())
|
f.write(parsed_email_template.get_payload())
|
||||||
|
|
||||||
from zerver.templatetags.app_filters import render_markdown_path
|
from zerver.lib.templates import render_markdown_path
|
||||||
|
|
||||||
rendered_input = render_markdown_path(plain_text_template_path.replace("templates/", ""))
|
rendered_input = render_markdown_path(plain_text_template_path.replace("templates/", ""))
|
||||||
|
|
||||||
|
|
|
@ -14,9 +14,9 @@ from zerver.decorator import add_google_analytics_context
|
||||||
from zerver.lib.integrations import CATEGORIES, INTEGRATIONS, HubotIntegration, WebhookIntegration
|
from zerver.lib.integrations import CATEGORIES, INTEGRATIONS, HubotIntegration, WebhookIntegration
|
||||||
from zerver.lib.request import REQ, has_request_variables
|
from zerver.lib.request import REQ, has_request_variables
|
||||||
from zerver.lib.subdomains import get_subdomain
|
from zerver.lib.subdomains import get_subdomain
|
||||||
|
from zerver.lib.templates import render_markdown_path
|
||||||
from zerver.models import Realm
|
from zerver.models import Realm
|
||||||
from zerver.openapi.openapi import get_endpoint_from_operationid, get_openapi_summary
|
from zerver.openapi.openapi import get_endpoint_from_operationid, get_openapi_summary
|
||||||
from zerver.templatetags.app_filters import render_markdown_path
|
|
||||||
|
|
||||||
|
|
||||||
def add_api_uri_context(context: Dict[str, Any], request: HttpRequest) -> None:
|
def add_api_uri_context(context: Dict[str, Any], request: HttpRequest) -> None:
|
||||||
|
|
|
@ -10,7 +10,7 @@ from jinja2 import Environment
|
||||||
from two_factor.templatetags.two_factor import device_action
|
from two_factor.templatetags.two_factor import device_action
|
||||||
|
|
||||||
from zerver.context_processors import DEFAULT_PAGE_PARAMS
|
from 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_entry
|
||||||
|
|
||||||
|
|
||||||
def json_dumps(obj: object) -> str:
|
def json_dumps(obj: object) -> str:
|
||||||
|
|
Loading…
Reference in New Issue