mirror of https://github.com/zulip/zulip.git
ab53e8d3e6
This is implemented by replacing all matches of "%(var_name)s" in a URL format string with "{var_name}". Since we do want to ensure that the templates aren't broken after this migration, a RuntimeError is raised to let the maintainer know that certain linkifier cannot be converted automatically if it does not pass the uri_template.validate check. Also, we need to escape "%%", which is used to represent "%" in the old format string syntax, as well as "{" and "}", which is a part of the URL template syntax. Signed-off-by: Zixuan James Li <p359101898@gmail.com> |
||
---|---|---|
.. | ||
actions | ||
data_import | ||
integration_fixtures/nagios | ||
lib | ||
management | ||
migrations | ||
openapi | ||
tests | ||
tornado | ||
views | ||
webhooks | ||
worker | ||
__init__.py | ||
apps.py | ||
context_processors.py | ||
decorator.py | ||
filters.py | ||
forms.py | ||
logging_handlers.py | ||
middleware.py | ||
models.py | ||
signals.py |