summaryrefslogtreecommitdiff
path: root/django/template
AgeCommit message (Collapse)Author
2013-10-17Fixed #21285 -- Fixed E121,E122 pep8 warningsAlasdair Nicol
2013-10-14Fixed #21266 -- Fixed E201,E202 pep8 warnings.Larry O'Neill
2013-10-11Fixed assorted flake8 errors.Tim Graham
2013-10-10Used "is" for comparisons with None.Tim Graham
2013-10-05Fixed #21189: Cleaned up usage of bare except clauses.Baptiste Mispelon
Thanks to berkerpeksag for the report and to claudep for the review.
2013-09-22Removed a few trailing backslashes.Aymeric Augustin
We have always been at war with trailing backslashes.
2013-09-19Fixed #7557 -- Added type checking to Variable initialization.Tim Graham
Thanks tobias for the suggestion and boblefrag and saz for work on the patch.
2013-09-18Fixed #4278 -- Added a dirs parameter to a few functions to override ↵Berker Peksag
TEMPLATE_DIRS. * django.template.loader.get_template() * django.template.loader.select_template() * django.shortcuts.render() * django.shortcuts.render_to_response() Thanks amcnabb for the suggestion.
2013-09-10Prevented arbitrary file inclusion with {% ssi %} tag and relative paths.Tim Graham
Thanks Rainer Koirikivi for the report and draft patch. This is a security fix; disclosure to follow shortly.
2013-09-10Fixed #20841 -- Added messages to NotImplementedErrorsGregor MacGregor
Thanks joseph at vertstudios.com for the suggestion.
2013-09-09Simplify FilterExpression.args_checkCurtis Maloney
2013-09-08Fix #20745: Don't silence TypeError raised inside templates.Baptiste Mispelon
Thanks to robin for the report and claudep for the review.
2013-09-06Fixed a number of flake8 errors -- particularly around unused imports and ↵Alex Gaynor
local variables
2013-09-06Fixed #16096 -- Added origin attribute to template instances.Preston Timmons
Thanks jdunck for the suggestion.
2013-09-02Replaced "not PY3" by "PY2", new in six 1.4.0.Aymeric Augustin
2013-08-30Fixed #20989 -- Removed useless explicit list comprehensions.Simon Charette
2013-08-30Improved {% include %} implementationCurtis Maloney
Merged BaseIncludeNode, ConstantIncludeNode and Include node. This avoids raising TemplateDoesNotExist at parsing time, allows recursion when passing a literal template name, and should make TEMPLATE_DEBUG behavior consistant. Thanks loic84 for help with the tests. Fixed #3544, fixed #12064, fixed #16147
2013-08-29Fixed #20989 -- Removed explicit list comprehension inside dict() and tuple()Tim Graham
Thanks jeroen.pulles at redslider.net for the suggestion and helper script.
2013-08-29Fixed #7116 -- Optimize RequestContext constructionCurtis Maloney
2013-08-29Fixed #17356 -- Allowed {% include %} to render compiled templatesCurtis Maloney
Reviewed by Loic Bistuer and Tim Graham.
2013-08-28Fixed #14765 -- Removed unncessary usage of NodeList in ForNode.Tim Graham
Thanks traff and FunkyBob for work on the patch.
2013-08-26Added further fixes, tests for #19949/f33db5a09a.Ramiro Morales
Thanks Susan Tan. Refs #19949.
2013-08-24Fixed 19949 -- Cached template loader now caches TemplateDoesNotExistSusanTan
Thanks @timgraham and @jdunck for the code reviews and Kronuz for bug report and initial patch.
2013-08-21Fixed #20949 -- Typo #2 in docstringTim Graham
2013-08-21Fixed docstring typo, thanks minddust.Tim Graham
2013-08-14Fixed #20709 -- Allowed {% widthratio %} to accept an "as" parameter.Jonathan Slenders
Thanks clay.evil@ for the suggestion.
2013-08-12Fixed #17778 -- Prevented class attributes on context from resolving as ↵Tim Graham
template variables. Thanks KyleMac for the report, regebro for the patch, and Aymeric for the test.
2013-07-30Fixed #20806 -- Cached loader caches find_templateGavin Wahl
The cached template loader should cache find_template in addition to load_template.
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-07-29Deprecated django.utils.importlibClaude Paroz
This was a shim for pre-Python 2.7 support.
2013-07-17Allowed Context.push to behave as a context mananger.Curtis Maloney
Thanks Loic Bistuer for the review.
2013-06-29Advanced deprecation warnings for Django 1.7.Aymeric Augustin
2013-06-28Removed 'mimetype' arguments from a few places, as per deprecation TL.Ramiro Morales
This includes HttpResponse and co. __init__() methods, django.shortcuts.render_to_response() and the index(), sitemap() sitemap app views.
2013-06-25Fixed #20650 -- Fixed {% filter %} incorrectly accepting 'escape' as argumentBaptiste Mispelon
Thanks to grzesiof for the report and to loic84 and Alex Gaynor for the review.
2013-06-19Removed several unused imports.Aymeric Augustin
2013-05-18Fixed #20246 -- Added non-breaking spaces between values an unitsEmil Stenström
2013-05-17Replaced an antiquated pattern.Aymeric Augustin
Thanks Lennart Regebro for pointing it out.
2013-04-01Updated some 'Dive Into Python' linksClaude Paroz
2013-03-17Fixed #19510 -- Race condition in template loading.Aymeric Augustin
Thanks Kronuz and regebro.
2013-02-27[py3] Always fed hashlib with bytes.Łukasz Langa
2013-02-25Switching to autoescape is not a change in syntax.Carl Meyer
2013-02-25Remove leading underscore from a function that's all growed up now.Carl Meyer
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.
2013-02-24Fixed #19890 -- ifchanged templatetag rendered its content twiceChristopher Medrela
The content of ifchanged template tag was rendered twice: first time, to compare it with the previous value and the second time, to return the rendered output.
2013-02-24Fixed #15849 -- Made IfChanged node thread safe.Diederik van der Boor
Previously, the ifchanged node stored state on `self._last_seen`, thereby giving undesired results when the node is reused by another thread at the same time (e.g. globally caching a Template object). Thanks to akaihola for the report and Diederik van der Boor and Bas Peschier for the patch.
2013-02-23Fixed #19827 -- Kept stacktrace in defaulttags exception reraisingLennart Regebro
Thanks Kronuz for the report and the initial patch.
2013-02-23Merge pull request #751 from bmispelon/ticket-6271Aymeric Augustin
2013-02-23Fixed #17906 - Autoescaping {% cycle %} and {% firstof %} templatetags.Vladimir A Filonov
This commit adds "future" version of these two tags with auto-escaping enabled.
2013-02-23Used token.split_contents() for tokenisation in template tags accepting ↵Baptiste Mispelon
variables. Fixed #6271, #18260.
2013-02-22Fixed #19846 -- Optimized a dict of lists in BlockContext classClaude Paroz
Thanks Curtis Maloney for the report and the patch.
2013-02-22Fixed #19882 -- Smarter tokenizing of {% for %} tag arguments.Baptiste Mispelon