Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/template_tests
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25441 -- Added support for negative filesize to ↵Sambhav Satija2015-10-271-0/+4
| | | | | | filesizeformat template filter. Thanks Andrey Yakovlev for the initial patch.
* Fixed #25610 -- Reverted removal of request.current_app ↵Marten Kenbeek2015-10-261-0/+20
| | | | | | | in {% url %} tag. The deprecation removal in 5e450c52aafb62b9d83c8ac08892e0b92cbec4aa removed too much.
* Fixed #25423 -- Made error message for unknown template ↵Pindi Albert2015-10-051-5/+12
| | | | tag more helpful.
* Refs #23913 -- Removed support for a single equals sign ↵Tim Graham2015-09-241-44/+6
| | | | | | in {% if %} tag. Per deprecation timeline.
* Made template response APIs enforce the use of dict and ↵Tim Graham2015-09-241-13/+2
| | | | | | backend-specific template objects. Per deprecation timeline; refs 79deb6a0716e554cac5308e86f5754f19ad436dc.
* Removed support for passing a context to a generic ↵Tim Graham2015-09-241-6/+0
| | | | | | Template.render(). Per deprecation timeline; refs a3e783fe11dd25bbf84bfb6201186566ed473506.
* Removed dictionary and context_instance parameters for ↵Tim Graham2015-09-241-35/+3
| | | | | | render functions. Per deprecation timeline.
* Removed dirs parameter in template engine methods and ↵Tim Graham2015-09-241-25/+0
| | | | | | related funtions. Per deprecation timeline.
* Removed current_app argument to render() and ↵Tim Graham2015-09-244-32/+7
| | | | | | TemplateResponse(). Per deprecation timeline.
* Refs #13408 -- Made unpacking mismatch an exception in ↵Tim Graham2015-09-241-34/+18
| | | | {% for %} tag per deprecation timeline.
* Refs #23269 -- Removed the removetags template tag and ↵Tim Graham2015-09-241-49/+0
| | | | related functions per deprecation timeline.
* Refs #22384 -- Removed the ability to reverse URLs by ↵Tim Graham2015-09-242-54/+23
| | | | dotted path per deprecation timeline.
* Refs #23261 -- Removed old style list syntax for ↵Tim Graham2015-09-241-56/+1
| | | | | | unordered_list filter Per deprecation timeline.
* Refs #24451 -- Removed comma-separated {% cycle %} ↵Tim Graham2015-09-241-33/+1
| | | | syntax per deprecation timeline.
* Refs #24022 -- Removed the ssi tag per deprecation timeline.Tim Graham2015-09-242-115/+0
|
* Refs #22306 -- Removed cycle/firstof template tags from ↵Tim Graham2015-09-242-20/+8
| | | | | | "future". Per deprecation timeline.
* Fixed #25373 -- Added warning logging for exceptions ↵Nick Johnson2015-09-221-3/+48
| | | | during {% include %} tag rendering.
* Refs #18773 -- Improved template variable exception ↵Nick Johnson2015-09-221-6/+15
| | | | logging message.
* Refs #25422 -- Added a test for a template tag with type ↵Thomas Orozco2015-09-182-0/+15
| | | | | | | annotations. This doesn't work in Django 1.8 but was fixed in Django 1.9 as a side effect of another change.
* Fixed #25404 -- Added line numbers to ↵Dave Smith2015-09-153-6/+15
| | | | | | | TemplateSyntaxError strings. This makes it much easier to diagnose a test failure when all you have is the stack trace from an uncaught TemplateSyntaxError.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-1216-39/+123
|
* Fixed #24765 -- Allowed template context updates to ↵Buddy Lindsey, Jr2015-09-111-0/+54
| | | | flatten a Context.
* Fixed #24257 -- Corrected i18n handling of percent signs.Doug Beck2015-08-122-0/+19
| | | | | | | | | | | | | | | 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 "%%".
* Refs #25236 -- Removed ifequal/ifnotequal usage.Tim Graham2015-08-082-5/+5
|
* Updated Wikipedia links to use httpsClaude Paroz2015-08-081-12/+12
|
* Fixed #24127 -- Changed the default current_app to the ↵Marten Kenbeek2015-07-272-5/+40
| | | | | | | current namespace. Changed the url template tag to use request.resolver_match.namespace as a default for the current_app argument if request.current_app is not set.
* Corrected HTML-escaping behaviour of url template tag.Luke Plant2015-07-211-1/+10
| | | | | | Due to the URL encoding applied by the tag for all parameters that might be partly controllable by an end-user, there are no XSS/security problems caused by this bug, only invalid HTML.
* Fixed #25120 -- Deprecated egg template loader.Tim Graham2015-07-161-0/+1
|
* Fixed #21695 -- Added asvar option to blocktrans.Matthew Somerville2015-07-011-0/+35
| | | | Thanks Bojan Mihelac for the initial patch.
* Used %r in the TextNode repr to show newlines better.Ned Batchelder2015-06-301-1/+17
|
* Fixed #25018 -- Changed simple_tag to apply ↵Luke Plant2015-06-292-0/+41
| | | | | | | | | conditional_escape() to its output. This is a security hardening fix to help prevent XSS (and incorrect HTML) for the common use case of simple_tag. Thanks to Tim Graham for the review.
* Fixed #25031 -- Fixed a regression in the unordered_list ↵Noam2015-06-271-0/+7
| | | | template filter.
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-2413-73/+73
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Fixed #23516 -- Added caching of include tag Template ↵Matthew Somerville2015-06-061-0/+14
| | | | | | | objects This also speeds up for loops that render the same template multiple times.
* Fixed #24230 -- Added translated language name for i18n ↵Tomáš Ehrlich2015-06-021-10/+27
| | | | template tag/filter.
* Fixed #24847 -- Prevented items set on a RequestContext ↵Paweł Marczewski2015-05-271-3/+10
| | | | from being lost.
* Fixed #17085, #24783 -- Refactored template library ↵Preston Timmons2015-05-2123-78/+239
| | | | | | | | 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.
* Refs #24652 -- Converted a template test to avoid ↵Simon Charette2015-05-201-2/+2
| | | | executing queries.
* Fixed template_tests failure on Windows.Tim Graham2015-04-281-2/+4
|
* Fixed #15053 -- Enabled recursive template loading.Preston Timmons2015-04-2213-36/+344
|
* Updated template tests to create their own engine.Preston Timmons2015-04-2011-172/+154
| | | | This continues work to treat Django templates as a library.
* Fixed #24603 -- Allowed Context.update() to be used as a ↵Tommy Beadle2015-04-141-0/+13
| | | | context manager.
* Fixed #12199 -- Added the ability to use "as" with the ↵Craig Oldford2015-04-141-0/+7
| | | | firstof template tag.
* Fixed #23441, #24555 -- Improved the behavior of ↵Preston Timmons2015-04-015-1/+37
| | | | | | | | | | | InclusionNode. This change: * Makes the InclusionNode cache-safe by removing render-time side effects to its nodelist. * Ensures the render_context stack is properly scoped and reset by updating the render call to use Template.render rather than Nodelist.render.
* Fixed #18773 -- Added logging for template variable ↵Caroline Simpson2015-03-281-0/+71
| | | | | | | | resolving Added a django.template logger without a default handler. Added logging if there is an exception while resolving variables in a template.
* Cleaned up the template debug implementation.Preston Timmons2015-03-206-49/+51
| | | | | | | | | | | | | | | | | | | | | | | | | 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 #24493 -- Added BaseContext.setdefault()Preston Timmons2015-03-161-0/+11
|
* Fixed #24471 -- Enhanced urlize regex to exclude quotes ↵Tim Graham2015-03-111-0/+20
| | | | and angle brackets.
* Fixed escaping regression in urlize filter.Tim Graham2015-03-102-10/+10
| | | | | Now that the URL is always unescaped as of refs #22267, we should re-escape it before inserting it into the anchor.
* Fixed #24464 -- Made built-in HTML template filter ↵Erik Romijn2015-03-097-9/+128
| | | | | | | | | | functions escape their input by default. This may cause some backwards compatibility issues, but may also resolve security issues in third party projects that fail to heed warnings in our documentation. Thanks Markus Holtermann for help with tests and docs.