summaryrefslogtreecommitdiff
path: root/django/template
AgeCommit message (Collapse)Author
2007-07-04Merged Unicode branch into trunk (r4952:5608). This should be fullyMalcolm Tredinnick
backwards compatible for all practical purposes. Fixed #2391, #2489, #2996, #3322, #3344, #3370, #3406, #3432, #3454, #3492, #3582, #3690, #3878, #3891, #3937, #4039, #4141, #4227, #4286, #4291, #4300, #4452, #4702 git-svn-id: http://code.djangoproject.com/svn/django/trunk@5609 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-23Fixed a Python 2.3 incompatibility I overlooked in [5516].Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5517 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-23Fixed #4607 -- Tweaked checks for features missing in Python 2.3 to not assumeMalcolm Tredinnick
things Python does not guarantee. Patch from SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5514 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-22Backed out the changes in [5482] for a bit whilst some more investigation intoMalcolm Tredinnick
side-effects is done. Refs #4565. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-17Trivial formatting changes.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5486 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-17Fixed #4506 -- Changed "regroup" template tag to use __eq__ instead of repr()Malcolm Tredinnick
for grouping equality checking. Thanks, Brian Harring. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5484 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-17Fixed #4565 -- Changed template rendering to use iterators, rather thanMalcolm Tredinnick
creating large strings, as much as possible. This is all backwards compatible. Thanks, Brian Harring. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5482 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-10Fixed #4462 -- Use builtin reversed() function when available (in "for" tag).Malcolm Tredinnick
Thanks, Brian Harring. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5454 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-08Fixed #3523 -- Added list unpacking to for loops in templates. Thanks to ↵Russell Keith-Magee
SmileyChris and Honza Kral for their work. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5443 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-31Fixed #4441 -- Made a small optimization to the regroup template tag ↵Adrian Holovaty
implementation. Thanks, ferringb@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@5392 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-24Fixed #4378 -- Fixed a broken format string.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5333 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08Fixed #3753 -- Allow optional display of invalid variable name inMalcolm Tredinnick
TEMPLATE_STRING_IF_INVALID. Thanks, Matt McClanahan. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5167 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-28Fixed #4180 -- Fixed docstring typo noticed by Gary Wilson.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5117 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-28Fixed #4176 -- Fixed unintended change introduced in [5104]. Thanks,Malcolm Tredinnick
SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5116 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-27Minor tweak. Removed unnecessary argument default.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5105 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-27Fixed #4164, #4171 -- Reworked some of the template lexer logic to ensure weMalcolm Tredinnick
don't get caught out by a couple of corner cases. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5104 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-26Fixed #4040 -- Changed uses of has_key() to "in". Slight performanceMalcolm Tredinnick
improvement and forward-compatible with future Python releases. Patch from Gary Wilson. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-25Fixed #3543 -- Be a bit more tolerant of spaces following the commaMalcolm Tredinnick
argument separator in the "url" tag. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5077 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-25Fixed #3948 -- Added some extra relevant information to FilterExpressionMalcolm Tredinnick
parse-related error message. Thanks, philippe.raoult@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5067 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-23Fixed #4107 -- Marked a few more strings for translation. Thanks, Baptiste.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5061 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-21Fixed #3749 -- Set the context correctly when using the "filter" template tag.Malcolm Tredinnick
Thanks, Zak Johnson. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5052 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-21Fixed #4098 -- fixed a syntax error when reporting errors in "with" templateMalcolm Tredinnick
tag. Thanks cephelo@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5048 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-03Fixed #3887 -- Fixed formatting error in docstring that was causing problems inMalcolm Tredinnick
online admin documentation. Thanks Florian Apolloner. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4909 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-01Fixed #3532 -- Made spaceless template tag remove all spaces, rather than ↵Russell Keith-Magee
preserving a single space. Thanks for the suggestion, ampaze@gmx.net. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4885 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-30Fixed #3799 -- Added django.contrib.webdesign and moved 'lorem' template tag ↵Adrian Holovaty
into there git-svn-id: http://code.djangoproject.com/svn/django/trunk@4857 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-29Fixes #3799 -- Oops - ran last checkin from the wrong directory. Checked in ↵Russell Keith-Magee
the rest of the lorem templatetag implementation. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4848 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-27Fixed #3826: added a {% with %}. Thanks, SmileyChris.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4830 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-25Fixed #3808 -- Fixed some typos in comments. Thanks, Collin GradyAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4816 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-16Small tweaks to docstrings from [4700]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4747 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-10Fixed #3696 -- Fixed inline documentation to avoid some HTML validity issues.Malcolm Tredinnick
Patch from Simon Greenhill. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4700 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-10Fixed #3693 -- Fixed RST error in floatformat docstring. Thanks, SimonMalcolm Tredinnick
Greenhill. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4699 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-09Fixed #3670 -- Fixed template argument parsing so that it understands negativeMalcolm Tredinnick
floats and integers as numeric types. Patch from SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4690 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-27Fixed #3465: template variable lookups like {{ foobar.13 }} now (correctly) ↵Jacob Kaplan-Moss
fail silently on unsubscriptable objects. Thanks, Gary Wilson. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4639 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-23Fixed #3558: [4558] broken in Python 2.3; this fixes that breakage. Thanks ↵Jacob Kaplan-Moss
for the heads-up, xian@mintchaos.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@4562 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-23Fixed #343: filters that take strings now handle non-strings correctly. ↵Jacob Kaplan-Moss
Thanks to Boffbowsh for the original patch, and to SmileyChris for the updated patch and tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4558 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-13Fixed #3155 -- Allow an integer to be passed to the urlencode filter. PatchMalcolm Tredinnick
based on one from SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4496 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-13Fixed #2606 -- Added tag for working out the URL of a particular view function.Malcolm Tredinnick
All work done by Ivan Sagalaev. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4494 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-12Small formatting tweaks to named-end-blocks change from [4489]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4492 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-12Fixed #3351 -- Added optional naming of the block in "endblock" tags to ensureMalcolm Tredinnick
correct nesting. Thanks for the patch, SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4489 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-10Fixed #3071 -- added a {{{__contains__}}} method to the Context class. ThanksMalcolm Tredinnick
akaihola. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4480 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-10Fixed #2027 -- added truncatewords_html filter that respects HTML tags whilstMalcolm Tredinnick
truncating. Patch from SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4468 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-09Fixed #3468 -- fixed typo in VariableDoesNotExist.__str__. Pointed out byMalcolm Tredinnick
Herbert Poul. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4465 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-06Fixed #3441: VariableDoesNotExist is now a bit lazier about rendering its ↵Jacob Kaplan-Moss
error message. Thanks, Brian Harring. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4461 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-03Fixes #3176, #3004 -- Added an argument to the floatfilter to allow users to ↵Russell Keith-Magee
specify precision of floats, Thanks, Eric Floehr. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4274 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-05Template system now supports variables whose str() returns a Unicode object ↵Adrian Holovaty
with non-ascii characters. Thanks, gabor git-svn-id: http://code.djangoproject.com/svn/django/trunk@4161 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-07Formatting fixes from the past round of checkinsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4052 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-07Fixed #2800: the ifchanged tag now can optionally take paramaters to be ↵Jacob Kaplan-Moss
checked for changing (instead of always using the content). Thanks, Wolfram Kriesing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4050 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-07Fixed #2914: filesizeformat no longer dies on invalid values. Thanks, ↵Jacob Kaplan-Moss
dev@simon.net.nz git-svn-id: http://code.djangoproject.com/svn/django/trunk@4044 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-07Fixed #2343: Library.inclusion_tag now accepts a list of template names ↵Jacob Kaplan-Moss
along with a single name. Thanks, mderk@yandex.ru git-svn-id: http://code.djangoproject.com/svn/django/trunk@4038 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-10-30Fixed #2968 -- Changed arguments to __import__ to use empty dictionary ↵Adrian Holovaty
instead of empty string, for stricter compliance with Python library reference. Thanks for the patch, Yasushi Masuda git-svn-id: http://code.djangoproject.com/svn/django/trunk@3951 bcc190cf-cafb-0310-a4f2-bffc1f526a37