Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/template_tests/test_parser.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #17085, #24783 -- Refactored template library ↵Preston Timmons2015-05-211-1/+2
| | | | | | | | registration. * Converted the ``libraries`` and ``builtins`` globals of ``django.template.base`` into properties of the Engine class. * Added a public API for explicit registration of libraries and builtins.
* Cleaned up the template debug implementation.Preston Timmons2015-03-201-10/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This patch does three major things: * Merges the django.template.debug implementation into django.template.base. * Simplifies the debug implementation. The old implementation copied debug information to every token and node. The django_template_source attribute was set in multiple places, some quite hacky, like django.template.defaulttags.ForNode. Debug information is now annotated in two high-level places: * Template.compile_nodelist for errors during parsing * Node.render_annotated for errors during rendering These were chosen because they have access to the template and context as well as to all exceptions that happen during either the parse or render phase. * Moves the contextual line traceback information creation from django.views.debug into django.template.base.Template. The debug views now only deal with the presentation of the debug information.
* Fixed #24372 - Replaced TokenParser usage with ↵Preston Timmons2015-03-031-26/+1
| | | | traditional parsing.
* Moved test_token_smart_split into ParserTests.Preston Timmons2015-02-241-1/+10
|
* Deprecated TEMPLATE_DEBUG setting.Aymeric Augustin2015-02-151-1/+1
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-1/+3
|
* Cleaned up the django.template namespace.Aymeric Augustin2014-12-281-2/+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.
* Imported override_settings from its new location.Aymeric Augustin2013-12-231-1/+1
|
* Fixed E124 pep8 warnings.Loic Bistuer2013-12-101-6/+2
|
* Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol2013-10-231-0/+5
|
* Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol2013-10-181-2/+2
|
* Fixed #7557 -- Added type checking to Variable ↵Tim Graham2013-09-191-0/+4
| | | | | | | initialization. Thanks tobias for the suggestion and boblefrag and saz for work on the patch.
* Simplify FilterExpression.args_checkCurtis Maloney2013-09-091-1/+40
|
* Stopped using django.utils.unittest in the test suite.Aymeric Augustin2013-07-011-1/+2
| | | | Refs #20680.
* Modified template_tests for unittest2 discovery.Preston Timmons2013-04-121-0/+95