Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/templatetags
Commit message (Collapse)AuthorAgeFilesLines
* Refs #22306 -- Removed cycle/firstof template tags from ↵Tim Graham2015-09-241-66/+0
| | | | | | "future". Per deprecation timeline.
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-315-8/+0
|
* Fixed #24257 -- Corrected i18n handling of percent signs.Doug Beck2015-08-121-0/+6
| | | | | | | | | | | | | | | 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 "%%".
* Fixed #21695 -- Added asvar option to blocktrans.Matthew Somerville2015-07-011-3/+24
| | | | Thanks Bojan Mihelac for the initial patch.
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-5/+5
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Fixed #24230 -- Added translated language name for i18n ↵Tomáš Ehrlich2015-06-021-0/+8
| | | | template tag/filter.
* Removed cases of six.iter* wrapped in a list()Curtis Maloney2015-04-181-1/+1
| | | | | There's absolutely no advantage [and a mild performance hit] to using six.iter* in these cases.
* Fixed #24372 - Replaced TokenParser usage with ↵Preston Timmons2015-03-031-40/+49
| | | | traditional parsing.
* Set context.template instead of context.engine while ↵Aymeric Augustin2015-02-191-1/+1
| | | | | | | | rendering. This opens more possibilities, like accessing context.template.origin. It also follows the chain of objects instead of following a shortcut.
* Subclassed template.Node instead of Node for consistency.Nik Nyby2015-02-121-2/+1
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-065-14/+14
|
* Fixed #24149 -- Normalized tuple settings to lists.darkryder2015-02-031-1/+1
|
* Removed ssi/url tags from future per deprecation ↵Tim Graham2015-01-171-19/+1
| | | | timeline; refs #21939.
* Cleaned up the django.template namespace.Aymeric Augustin2014-12-281-3/+2
| | | | | | | | | 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.
* Fixed #23968 -- Replaced list comprehension with ↵Jon Dufresne2014-12-081-1/+1
| | | | generators and dict comprehension
* Encapsulated TEMPLATE_STRING_IF_INVALID in Engine.Aymeric Augustin2014-11-231-1/+1
|
* Fix many many typos in comments throughout the codebaseAlex Gaynor2014-04-261-1/+1
|
* Fixed #22306 -- Deprecated future versions of cycle and ↵Maxime Turcotte2014-03-281-3/+11
| | | | firstof template tags.
* Switched {% cycle %} and {% firstof %} tags to ↵Tim Graham2014-03-211-2/+6
| | | | | | auto-escape their variables per deprecation timeline. refs #17906.
* Fixed #21188 -- Introduced subclasses for ↵Claude Paroz2014-03-081-2/+3
| | | | | | | to-be-removed-in-django-XX warnings Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
* Fixed #21939 -- Deprecated loading ssi/url tags from future.Zbigniew Siciarz2014-02-161-2/+10
|
* Fixed #21417 -- Expanded TEMPLATE_STRING_IF_INVALID in ↵Claude Paroz2014-02-081-2/+8
| | | | | | | | blocktrans Thanks keturn for the reporti, Chris Medrela for details and Tim Graham for the review. Refs #19915.
* A handful of flake8 fixesAlex Gaynor2013-11-231-1/+1
|
* Fixed #21012 -- New API to access cache backends.Curtis Maloney2013-11-231-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fixed #5849 -- Strip whitespace from blocktransBouke Haarsma2013-11-071-3/+12
| | | | | | | | | | | 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.
* Fixed the remaining E302 violations int eh django packageAlex Gaynor2013-11-032-0/+14
|
* Fixed all E261 warningscoagulant2013-11-021-1/+1
|
* More attacking E302 violatorsAlex Gaynor2013-11-021-0/+1
|
* Fixed up some more flake8 violations (this particular ↵Alex Gaynor2013-10-261-2/+2
| | | | violation still has many occurrences in the tests/ dir so it can't be removed from setup.cfg yet)
* Added missing newline in docstring; refs #20945.Tim Graham2013-10-241-0/+1
|
* Fixed #20945 -- Allowed cache tag to use a specific cache.Curtis Maloney2013-10-241-3/+31
|
* Fixed assorted flake8 errors.Tim Graham2013-10-111-1/+1
|
* Removed a few trailing backslashes.Aymeric Augustin2013-09-221-1/+1
| | | | We have always been at war with trailing backslashes.
* Took advantage of django.utils.six.moves.urllib.*.Aymeric Augustin2013-09-051-5/+1
|
* Fixed #20989 -- Removed explicit list comprehension ↵Tim Graham2013-08-291-1/+1
| | | | | | | inside dict() and tuple() Thanks jeroen.pulles at redslider.net for the suggestion and helper script.
* Fixed #20130 -- Regression in {% cache %} template tag.Baptiste Mispelon2013-03-301-1/+1
|
* Fixed #18003 -- Preserved tracebacks when re-raising errors.konarkmodi2013-03-191-2/+5
| | | | Thanks jrothenbuhler for draft patch, Konark Modi for updates.
* Fixed #19915 - Made blocktrans tag honor ↵matiasb2013-03-031-2/+5
| | | | | | TEMPLATE_STRING_IF_INVALID. Thanks Natalia Bidart for the report and Matías Bordese for the fix.
* Remove leading underscore from a function that's all ↵Carl Meyer2013-02-251-3/+3
| | | | | | | | 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.
* Fixed some docstrings that were raising Sphinx warnings ↵Julien Phalip2013-02-241-12/+12
| | | | when running the admindocs tests.
* Fixed #19253 -- Extracted template cache key building logicTomek Paczkowski2013-02-241-7/+3
| | | | | | Introduced a public function django.core.cache.utils.make_template_fragment_key Thanks @chrismedrela for fruitful cooperation.
* Merge pull request #751 from bmispelon/ticket-6271Aymeric Augustin2013-02-234-12/+19
|\
| * Used token.split_contents() for tokenisation in template ↵Baptiste Mispelon2013-02-234-12/+19
| | | | | | | | | | | | tags accepting variables. Fixed #6271, #18260.
* | Fixed #17906 - Autoescaping {% cycle %} and {% firstof ↵Vladimir A Filonov2013-02-231-3/+54
|/ | | | | | | %} templatetags. This commit adds "future" version of these two tags with auto-escaping enabled.
* Fixed #19088 -- Always escape % inside blocktrans tagClaude Paroz2012-10-231-6/+7
| | | | Thanks vlinhart for the report and Łukasz Rekucki for the patch.
* Replaced many smart_bytes by force_bytesClaude Paroz2012-08-291-3/+3
| | | | | | 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.
* [py3] Always pass bytes to hashlib.md5.Florian Apolloner2012-08-151-2/+4
|
* [py3] Ported django.utils.encoding.Aymeric Augustin2012-08-071-3/+3
| | | | | | | | | | | * 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.
* [py3] Fixed access to dict keys/values/items.Aymeric Augustin2012-08-071-1/+1
|
* [py3] Updated urllib/urllib2/urlparse imports.Aymeric Augustin2012-07-221-1/+5
| | | | | Lots of functions were moved. Use explicit imports in all cases to keey it easy to identify where the functions come from.