| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
"future".
Per deprecation timeline.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Refactored tests to use a sample project.
Updated extraction:
* Removed special handling of single percent signs.
* When extracting messages from template text, doubled all percent signs
so they are not interpreted by gettext as string format flags. All
strings extracted by gettext, if containing a percent sign, will now
be labeled "#, python-format".
Updated translation:
* Used "%%" for "%" in template text before calling gettext.
* Updated {% trans %} rendering to restore "%" from "%%".
|
|
|
|
| |
Thanks Bojan Mihelac for the initial patch.
|
|
|
|
|
| |
Forwardport of ae1d663b7913f6da233c55409c4973248372d302
from stable/1.8.x plus more.
|
|
|
|
| |
template tag/filter.
|
|
|
|
|
| |
There's absolutely no advantage [and a mild performance hit] to using six.iter*
in these cases.
|
|
|
|
| |
traditional parsing.
|
|
|
|
|
|
|
|
| |
rendering.
This opens more possibilities, like accessing context.template.origin.
It also follows the chain of objects instead of following a shortcut.
|
| |
|
| |
|
| |
|
|
|
|
| |
timeline; refs #21939.
|
|
|
|
|
|
|
|
|
| |
Since this package is going to hold both the implementation of the Django
Template Language and the infrastructure for Multiple Template Engines,
it should be untied from the DTL as much as possible within our
backwards-compatibility policy.
Only public APIs (i.e. APIs mentioned in the documentation) were left.
|
|
|
|
| |
generators and dict comprehension
|
| |
|
| |
|
|
|
|
| |
firstof template tags.
|
|
|
|
|
|
| |
auto-escape their variables per deprecation timeline.
refs #17906.
|
|
|
|
|
|
|
| |
to-be-removed-in-django-XX warnings
Thanks Anssi Kääriäinen for the idea and Simon Charette for the
review.
|
| |
|
|
|
|
|
|
|
|
| |
blocktrans
Thanks keturn for the reporti, Chris Medrela for details and
Tim Graham for the review.
Refs #19915.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Thanks Curtis Malony and Florian Apolloner.
Squashed commit of the following:
commit 3380495e93f5e81b80a251b03ddb0a80b17685f5
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Sat Nov 23 14:18:07 2013 +0100
Looked up the template_fragments cache at runtime.
commit 905a74f52b24a198f802520ff06290a94dedc687
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Sat Nov 23 14:19:48 2013 +0100
Removed all uses of create_cache.
Refactored the cache tests significantly.
Made it safe to override the CACHES setting.
commit 35e289fe9285feffed3c60657af9279a6a2cfccc
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Sat Nov 23 12:23:57 2013 +0100
Removed create_cache function.
commit 8e274f747a1f1c0c0e6c37873e29067f7fa022e8
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Sat Nov 23 12:04:52 2013 +0100
Updated docs to describe a simplified cache backend API.
commit ee7eb0f73e6d4699edcf5d357dce715224525cf6
Author: Curtis Maloney <curtis@tinbrain.net>
Date: Sat Oct 19 09:49:24 2013 +1100
Fixed #21012 -- Thread-local caches, like databases.
|
|
|
|
|
|
|
|
|
|
|
| |
Add the trimmed option to the blocktrans tag to trim any newlines and
whitespace from its content.
This allows the developer to indent the blocktrans tag without adding
new lines and whitespace to the msgid in the PO file.
Thanks to mpessas for the initial patch and Dmitri Fedortchenko for the
report.
|
| |
|
| |
|
| |
|
|
|
|
| |
violation still has many occurrences in the tests/ dir so it can't be removed from setup.cfg yet)
|
| |
|
| |
|
| |
|
|
|
|
| |
We have always been at war with trailing backslashes.
|
| |
|
|
|
|
|
|
|
| |
inside dict() and tuple()
Thanks jeroen.pulles at redslider.net for the suggestion and
helper script.
|
| |
|
|
|
|
| |
Thanks jrothenbuhler for draft patch, Konark Modi for updates.
|
|
|
|
|
|
| |
TEMPLATE_STRING_IF_INVALID.
Thanks Natalia Bidart for the report and Matías Bordese for the fix.
|
|
|
|
|
|
|
|
| |
growed up now.
This function is now the de facto standard function for rendering values in a
template, and is imported by two other built-in template modules. It shouldn't
have a leading underscore.
|
|
|
|
| |
when running the admindocs tests.
|
|
|
|
|
|
| |
Introduced a public function
django.core.cache.utils.make_template_fragment_key
Thanks @chrismedrela for fruitful cooperation.
|
|\ |
|
| |
| |
| |
| |
| |
| | |
tags accepting variables.
Fixed #6271, #18260.
|
|/
|
|
|
|
|
| |
%} templatetags.
This commit adds "future" version of these two tags with auto-escaping
enabled.
|
|
|
|
| |
Thanks vlinhart for the report and Łukasz Rekucki for the patch.
|
|
|
|
|
|
| |
In all those occurrences, we didn't care about preserving the
lazy status of the strings, but we really wanted to obtain a
real bytestring.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* Renamed smart_unicode to smart_text (but kept the old name under
Python 2 for backwards compatibility).
* Renamed smart_str to smart_bytes.
* Re-introduced smart_str as an alias for smart_text under Python 3
and smart_bytes under Python 2 (which is backwards compatible).
Thus smart_str always returns a str objects.
* Used the new smart_str in a few places where both Python 2 and 3
want a str.
|
| |
|
|
|
|
|
| |
Lots of functions were moved. Use explicit imports in all cases
to keey it easy to identify where the functions come from.
|