summaryrefslogtreecommitdiff
path: root/django/utils
AgeCommit message (Collapse)Author
2010-03-12[1.1.X] Fixed #13093 -- Updated some decorators and the ↵Russell Keith-Magee
decorator_from_middleware function to allow callable classes to be decorated. Thanks to Brian Neal for the report. Backport of r12762 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12763 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-28[1.1.X] Fixed #12302: Modified force_unicode to avoid raising unicode errors ↵Karen Tracey
when handed exceptions with non-ASCII bytestring data and no working unicode method under Python 2.6 and higher. r12621 and r12622 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12623 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-26[1.1.X] Fixed #11384 - Make sure translations in the project directory ↵Jannis Leidel
really override translations in apps as specified in the docs. Backport of r12447. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12609 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-26[1.1.X] Fixed a bunch of Python 2.3 incompatibilities that had crept into ↵Karen Tracey
the 1.1.X branch. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12595 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-24[1.1.X] Fixed #12119. Changed smart_split to stop splitting on whitespace in ↵Joseph Kocherhans
quotes. Backport of r12581 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12582 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-23[1.1.X] Fixed #12820. Implemented other dict methods for MergeDict. Backport ↵Joseph Kocherhans
of [12498] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12501 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-16[1.1.X] Fixed #7720 - Fallback to the base language if the sub language ↵Jannis Leidel
given in the language cookie doesn't exist. Thanks, djoume and Ramiro Morales. Backport of r12442. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12452 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-14[1.1.X] Fixed a couple Python 2.4 incompatibilities. Backport of [12434].Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12435 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-13[1.1.X] Fixed #12613 -- Added Q and Z to the list of characters supported by ↵Russell Keith-Magee
the phone2numeric filter. Thanks to gabrielhurley for the report and patch. Backport of r12425 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12427 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-13[1.1.X] Fixed #12524 -- Clarified handling of pre-1000AD dates in ↵Russell Keith-Magee
datetime_safe (and thus, the serializers). Patch includes moving the datetime_safe tests into the utils regressiontests module. Thanks to gsf for the report and initial patch. Backport of r12423 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12424 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-28[1.1.X] Fixed #8758 -- Corrected handling of tag creation in feeds when the ↵Russell Keith-Magee
URL contains a port number. Partial backport of r12338 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12340 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-17[1.1.X] Fixed #12230 - Updated utils.translation.to_locale to support the ↵Jannis Leidel
special sr_Latn locale. Thanks to Janos Guljas. Backport of r12056. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12251 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-05[1.1.X] Fixed #12506 - 'lazy' fails when there are multiple expected classes ↵Luke Plant
with the same method Thanks to Alex for report and patch Backport of r12104 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12105 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-03[1.1.X] Fixed #12445 -- Added ' (single quote), @ (at sign), and ~ (tilde) ↵Gary Wilson Jr
to safe characters in `iri_to_uri` function. Backport of r12066 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12067 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-03[1.1.X] Fixed #12476 -- Forced the rollout of generators passed to ↵Russell Keith-Magee
SortedDict so that the data source can be read twice. Thanks to gsf for the report, and Alex for the patch. Backport of r12064 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12065 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-17[1.1.X] Fixed #11753 - Q objects with callables no longer explode on Python ↵Jacob Kaplan-Moss
2.4. Thanks, Jeremy Dunck. Backport of [11901]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11903 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-12[1.1.X] Fixed #10130: you may now delete attributes on `settings`. Thanks, ↵Jacob Kaplan-Moss
jcassee. Backport of r11824. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11825 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-12[1.1.X] Fixed #11874 -- Optimizations and cleanups for SortedDict. Thanks to ↵Russell Keith-Magee
Alex Gaynor and Armin Ronacher for the report and patch. Backport of r11815 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11816 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-10-20[1.1.X] Fixed #12060 - equality tests between User and ↵Luke Plant
SimpleLazyObject-wrapped User failed. Also added more tests for SimpleLazyObject Thanks to ericholscher for report. Backport of r11637 from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11638 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-10-19[1.1.X] Fixed #12049 - LazyObject-wrapped User breaks queries in template tagsLuke Plant
Thanks to chipx86 for the report and patch. Backport of r11634 from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11635 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-10-15[1.1.X] Fixed a regression for Python 2.6 introduced in r11624 on this branch.Luke Plant
Backport of r11625 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11626 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-09-10As long as we're micro-optomizing, do it right -- using map() shaves another ↵Jacob Kaplan-Moss
dozen or so seconds off the test suite run time. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11495 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-09-10Micro-optomization to SortedDict.values(). Yes, it looks silly, but it ↵Jacob Kaplan-Moss
shaves 30 seconds (5%) off the run time of the test suite. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11494 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-17Fixed #11066 -- Corrected 15 duplicate "the"s found in docs and code ↵Karen Tracey
comments. Thanks kaikuehne. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10801 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-08Fixed #10825: fixed the 'U' format code to dateformat (and the date/now ↵Jacob Kaplan-Moss
filter/tag). Thanks to gsong and mir. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10716 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-08Fixed #10335: handle system locals unknown to Python in timezone name ↵Jacob Kaplan-Moss
handling. Thanks, mitsuhiko. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10703 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-13Fixed #9522 -- Modified handling of values in base serializer so that field ↵Russell Keith-Magee
subclasses can define their own value_to_string() method for serialization. Thanks to Alex Koshelev for the report and initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10554 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-10Fixed #9315 -- Handle spaces in URL tag arguments.Malcolm Tredinnick
Thanks Natalia Bidart and Matías Bordese for most of this patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10462 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-04Fixed #10254: Changed the regex in get_valid_filename to allow unicode ↵Karen Tracey
alphanumerics (thanks gulliver). Also updated the file_uploads test for this case to check the name after saving the uploaded file. As it was the test ensured that files with unicode characters in their names could be uploaded, but it wasn't actually ensuring that the unicode characters were preserved through save. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10388 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-03Fixed #10372: made `get_svn_revision()` more robust. Thanks, mboersma.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10377 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-03Fixed a whole bunch of small docs typos, errors, and ommissions.Jacob Kaplan-Moss
Fixes #8358, #8396, #8724, #9043, #9128, #9247, #9267, #9267, #9375, #9409, #9414, #9416, #9446, #9454, #9464, #9503, #9518, #9533, #9657, #9658, #9683, #9733, #9771, #9835, #9836, #9837, #9897, #9906, #9912, #9945, #9986, #9992, #10055, #10084, #10091, #10145, #10245, #10257, #10309, #10358, #10359, #10424, #10426, #10508, #10531, #10551, #10635, #10637, #10656, #10658, #10690, #10699, #19528. Thanks to all the respective authors of those tickets. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10371 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-01Fixed #10016: the cache middleware no longer vomits when handed long URLs. ↵Jacob Kaplan-Moss
Thanks, Matt Croydon. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10335 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-31Fixed #8847, #10370: added some missing methods to MultiValueDict after ↵Jacob Kaplan-Moss
[8399]. Thanks, James Turk and rfk. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-31Fixed #10184: QueryDicts with multiple values can now be safely pickled. ↵Jacob Kaplan-Moss
Thanks, Alex Gaynor. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10240 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-30Fixed #9883: no longer do strange things with whitespace in the linebreaks ↵Jacob Kaplan-Moss
filter. Thanks, keithb. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10225 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-30Fixed #10387: removed some code duplication in django.utils.cache. Thanks, ↵Jacob Kaplan-Moss
Travis Swicegood. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-30Fixed #9065 -- Fixed the `timesince` and `timeuntil` template tags to work ↵Gary Wilson Jr
when both values involved are date objects, thanks to morty and mboersma for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-30Fixed #10655 -- Who uses 5-space indentation anyways? Thanks to Andrew Badr ↵Justin Bronn
for the ticket & patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10186 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-23Added consistent support for double- and single-quote delimiters in templates.Malcolm Tredinnick
Some template filters and tags understood single-quoted arguments, others didn't. This makes everything consistent. Based on a patch from akaihola. Fixed #7295. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10118 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-22Fixed #5791 -- Added early-bailout support for views (ETags and Last-modified).Malcolm Tredinnick
This provides support for views that can have their ETag and/or Last-modified values computed much more quickly than the view itself. Supports all HTTP verbs (not just GET). Documentation and tests need a little more fleshing out (I'm not happy with the documentation at the moment, since it's a bit backwards), but the functionality is correct. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10114 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-20More typo fixing. :-(Malcolm Tredinnick
I'm crawling into my hole now. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10098 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-20Whoops. I left some debugging printing in r10096. Nothing to see here.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10097 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-20Fixed database backend creation for Python 2.3.Malcolm Tredinnick
Previously on "things we changed in the recent past".... the database connection setup was changed. People were happy. Except for those running on Python 2.3. We had completely broken Django on Python 2.3. Turns out, this is due to a long-standing bug in the _threading_local module that interacts with object creation in 2.3. Interestingly, although the bug remains in Python 2.4 and 2.5, they don't trip over it for reasons I don't entirely understand at the moment. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10096 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-18Fixed #8193: all dynamic imports in Django are now done correctly. I know ↵Jacob Kaplan-Moss
this because Brett Cannon borrowed the time machine and brought Python 2.7's '`importlib` back for inclusion in Django. Thanks for the patch-from-the-future, Brett! git-svn-id: http://code.djangoproject.com/svn/django/trunk@10088 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-02Factor out some common pieces of django.conf.LazySettings.Malcolm Tredinnick
This is in preparation for some reuse elsewhere in the core code. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9945 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-02-28Fixed #10048 -- Handle non-existent timezone in dateformat functions.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9919 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-02-27Fixed #10006 -- Avoid inadvertently using third-party "json" module.Malcolm Tredinnick
In r9707 we added a preference to use Python's standard json module (Python 2.6 and beyond). However, there is also a third-party module called json that was being picked up by accident if it was installed. It isn't API compatible, so bad things happened. This change avoids that problem. Patch from markmuetz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9910 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-02-11Fixed #5903 -- DecimalField.get_default() now correctly returns a Decimal ↵Brian Rosner
object when the model instance was not retrieved from the database. Thanks Justin Driscoll and pigletto. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9823 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-01-06Upgraded included simplejson to 2.0.7.Malcolm Tredinnick
Also changed importing logic to prefer a system-installed version of simplejson (unless it's an earlier version that does not contian the C speedups), then the json module from Python 2.6, then the version shipped with Django. Fixed #9266. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9707 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-13Fixed #9579 -- Properly handle apps running with (and specifically, loading ↵Karen Tracey
templates from) a current working directory path that contains non-ASCII characters. Thanks for the report to gonzalodelgado and for advice on how to fix it to Daniel Pope. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9411 bcc190cf-cafb-0310-a4f2-bffc1f526a37