summaryrefslogtreecommitdiff
path: root/django/utils
AgeCommit message (Collapse)Author
2009-05-17[1.0.X] Fixed #11066 -- Corrected 11 duplicate "the"s found in docs and code ↵Karen Tracey
comments. Thanks kaikuehne. Merge of applicable parts of r10801 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10802 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-08[1.0.X] Fixed #10335: handle system locals unknown to Python in timezone ↵Jacob Kaplan-Moss
name handling. Thanks, mitsuhiko. Backport of [10703] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10704 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-13[1.0.X] Fixed #9522 -- Modified handling of values in base serializer so ↵Russell Keith-Magee
that field subclasses can define their own value_to_string() method for serialization. Thanks to Alex Koshelev for the report and initial patch. Merge of r10554 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10555 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-10[1.0.X] Fixed #9315 -- Handle spaces in URL tag arguments.Malcolm Tredinnick
Thanks Natalia Bidart and Matías Bordese for most of this patch. Backport of r10462 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10463 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-04[1.0.X] Fixed #10254: Changed the regex in get_valid_filename to allow ↵Karen Tracey
unicode 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. Backport of [10388] git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10389 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-03[1.0.X] Fixed #10372: made `get_svn_revision()` more robust. Thanks, ↵Jacob Kaplan-Moss
mboersma. Backport of r10377 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-03[1.0.X] Fixed a whole bunch of small docs typos, errors, and ommissions. ↵Jacob Kaplan-Moss
Backport of the parts of r10371 that apply to the 1.0 docs. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10372 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-01[1.0.X] Fixed #10016: the cache middleware no longer vomits when handed long ↵Jacob Kaplan-Moss
URLs. Thanks, Matt Croydon. Backport of r10335 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10336 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-31[1.0.X] Fixed #8847, #10370: added some missing methods to MultiValueDict ↵Jacob Kaplan-Moss
after [8399]. Thanks, James Turk and rfk. Backport of r10241 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10298 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-31[1.0.X] Fixed #9883: no longer do strange things with whitespace in the ↵Jacob Kaplan-Moss
linebreaks filter. Thanks, keithb. Backport of r10225 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10292 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-31[1.0.X] Fixed #10387: removed some code duplication in django.utils.cache. ↵Jacob Kaplan-Moss
Thanks, Travis Swicegood. Backport of r10223 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10290 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-31[1.0.X] Fixed #10184: QueryDicts with multiple values can now be safely ↵Jacob Kaplan-Moss
pickled. Thanks, Alex Gaynor. Backport of [10240] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10279 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-30[1.0.X]: Fixed #9065 -- Fixed the `timesince` and `timeuntil` template tags ↵Gary Wilson Jr
to work when both values involved are date objects, thanks to morty and mboersma for the patch. Backport of r10215 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10216 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-02Removed some import-time dependencies on Django's settings.Malcolm Tredinnick
Now you can import the file storage stuff and still call settings.configure() afterwards. There is still one import-time usage of settings in django.contrib.comments, but that's unavoidable. Backport of r9945 and r9946 from trunk (this is needed in order to fix #8193 in a clean fashion, which is why it's being backported). git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9947 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-02-28[1.0.X] Fixed #10048 -- Handle non-existent timezone in dateformat functions.Malcolm Tredinnick
Backport of r9919 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9920 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-02-11[1.0.X] Fixed #5903 -- DecimalField.get_default() now correctly returns a ↵Brian Rosner
Decimal object when the model instance was not retrieved from the database. Thanks Justin Driscoll and pigletto. Backport of r9823 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9824 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-13[1.0.X] Fixed #9579 -- Properly handle apps running with (and specifically, ↵Karen Tracey
loading 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. r9411 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06[1.0.X] Added some better error reporting and path handling when creating ↵Malcolm Tredinnick
template paths. We now raise UnicodeDecodeError for non-UTF-8 bytestrings (thanks to Daniel Pope for diagnosing this was being swallowed by ValueError) and allow UTF-8 bytestrings as template directories. (The last bit is arguably a feature-add, but we allow UTF-8 bytestrings everywhere else, so I'm counting it as a bugfix.) Refs #8965. Backport of r9161 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9162 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03Changed the reverse() call for creating URLs to convert a "." in the reg-expMalcolm Tredinnick
pattern to a "." in the final output. This hides what is probably a bug in the pattern (the user almost certainly should have written "\."), but it will avoid a large number of "bug" reports about reverse(). git-svn-id: http://code.djangoproject.com/svn/django/trunk@8929 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01Fixed a case of incorrect parsing of quanitifers in reg-exp patterns.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8825 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01Fixed #8209: `ModelForm`s now validate unique constraints. Alex Gaynor did ↵Jacob Kaplan-Moss
much of this work, and Brian Rosner helped as well. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8805 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31Fixed #8726 -- When doing reverse URL resolving, make sure we're consistentlyMalcolm Tredinnick
dealing with unicode strings throughout by promoting up from UTF-8 as necessary. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8777 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31Fixed #8725 -- Handle empty URL patterns in reverse().Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8763 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31A rewrite of the reverse URL parsing: the reverse() call and the "url" ↵Malcolm Tredinnick
template tag. This is fully backwards compatible, but it fixes a bunch of little bugs. Thanks to SmileyChris and Ilya Semenov for some early patches in this area that were incorporated into this change. Fixed #2977, #4915, #6934, #7206. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8760 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-30Fixed #8710: removed a few stray tabs. Thanks, gkelly.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8746 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28Fixed #8654: added `ugettext_lazy` to `django.utils.translation.__all__`.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8680 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28Fixed #8637: fixed timeuntil and date values.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8668 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27Fixed #8584 -- Fixed a case where the wrong locale might be made active in theMalcolm Tredinnick
locale detection loop. Thanks, Ramiro Morales. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8606 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-26Removed stray code from [8601].Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8602 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-26Fixed #8566 -- Allow safe-strings in the "attrs" parameter to form widgets.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8601 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-26Fixed #4389: be more robust in `get_language_bidi()`. Thanks, arien.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8596 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-26Fixed #6353 (again) by making force_unicode() and smart_str() a bit more robustMalcolm Tredinnick
in the face of funky Exception instances. This is slightly symptomatic of problems in the calling code, but we don't want to raise a secondary exception whilst trying to display the first one. Based on a patch from Karen Tracey. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8588 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-26Fixed #7201 -- Fixed the timeuntil filter to work correctly with timezone-awareMalcolm Tredinnick
times. Patch from Jeremy Carbaugh. This is backwards incompatible in the sense that previously, if you tried to compare timezone-aware and timezone-naive values, you got an incorrect result. Now you get an empty string. So your previously incorrect code returns a different incorrect result. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8579 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-25Fixed #7831: be case-insensitive when in `get_language_from_request`.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8561 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-25Fixed #7496 -- It's now possible to pickle SortedDicts with pickle protocol 2Malcolm Tredinnick
(used in caching). Thanks, John Huddleston. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8531 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-16Fixed #8283 -- Fixed an edge case when adding things to the "where" tree andMalcolm Tredinnick
combining different connector types. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8413 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-16Fixed #7331 -- Made `QueryDict.iteritems` behave like `QueryDict.items`, ↵Gary Wilson Jr
thanks jurev. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8399 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-15Fixed #8219 -- More robust date to string conversion in syndication feeds.Malcolm Tredinnick
(Sometimes) Affects people running in locales that use non-ASCII date strings. Patch from alperkanat. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-15Fixed typo in comment.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8382 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-12Fixed #8253: fixed xmlns regression for Atom feeds, and in the process added ↵Jacob Kaplan-Moss
a hook for adding attributes specifically on the root <rss> element (for RSS feeds only, of course). Patch by Justin Bronn. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8331 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-11Added a number of callbacks to SyndicationFeed for adding custom attributes ↵Jacob Kaplan-Moss
and elements to feeds. Refs #6547. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8311 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-10Fixed #7830 -- Removed all of the remaining, deprecated, non-oldforms features:Gary Wilson Jr
* Support for representing files as strings was removed. Use `django.core.files.base.ContentFile` instead. * Support for representing uploaded files as dictionaries was removed. Use `django.core.files.uploadedfile.SimpleUploadedFile` instead. * The `filename`, `file_name`, `file_size`, and `chuck` properties of `UploadedFile` were removed. Use the `name`, `name`, `size`, and `chunks` properties instead, respectively. * The `get_FIELD_filename`, `get_FIELD_url`, `get_FIELD_size`, and `save_FIELD_file` methods for Models with `FileField` fields were removed. Instead, use the `path`, `url`, and `size` attributes and `save` method on the field itself, respectively. * The `get_FIELD_width` and `get_FIELD_height` methods for Models with `ImageField` fields were removed. Use the `width` and `height` attributes on the field itself instead. * The dispatcher `connect`, `disconnect`, `send`, and `sendExact` functions were removed. Use the signal object's own `connect`, `disconnect`, `send`, and `send` methods instead, respectively. * The `form_for_model` and `form_for_instance` functions were removed. Use a `ModelForm` subclass instead. * Support for importing `django.newforms` was removed. Use `django.forms` instead. * Support for importing `django.utils.images` was removed. Use `django.core.files.images` instead. * Support for the `follow` argument in the `create_object` and `update_object` generic views was removed. Use the `django.forms` package and the new `form_class` argument instead. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8291 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-08File storage refactoring, adding far more flexibility to Django's file ↵Jacob Kaplan-Moss
handling. The new files.txt document has details of the new features. This is a backwards-incompatible change; consult BackwardsIncompatibleChanges for details. Fixes #3567, #3621, #4345, #5361, #5655, #7415. Many thanks to Marty Alchin who did the vast majority of this work. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8244 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-08Fixed #8142 -- Removed an unnecessary parameter in a superclass init call.Malcolm Tredinnick
Patch from Karen Tracey. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-08Made auto-reloading for the dev server a little more friendly in the JythonMalcolm Tredinnick
case. Patch from Leo Soto. Fixed #8147. In passing, also corrected a typo when reloading .pyo files. Fixed #8157. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8235 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-05Fixed #7016: use correct time zones for Atom feeds. Thanks, Chris Cahoon.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8216 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-02Fixed #7919 -- md5 and sha modules are deprecated since Python 2.5, use ↵Gary Wilson Jr
hashlib module when available. Patch from Karen Tracey. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8193 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-02Removed several deprecated features for 1.0 (refs #7830):Gary Wilson Jr
* "simple" cache backend * `ObjectPaginator` * `edit_inline_type` argument for `ForeignKey` fields * `QOperator`, `QNot`, `QAnd` and `QOr` * `maxlength` argument git-svn-id: http://code.djangoproject.com/svn/django/trunk@8191 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-31Fixed #7723 - implemented a secure password reset form that uses a token and ↵Luke Plant
prompts user for new password. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8162 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-28Put back [8120] along with a small tweak. Fixed #6217.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8127 bcc190cf-cafb-0310-a4f2-bffc1f526a37