summaryrefslogtreecommitdiff
path: root/django/utils
AgeCommit message (Collapse)Author
2011-03-24[1.2.X] Ensure stdin is a tty before handing it to termios, so as to prevent ↵Karen Tracey
prolems when running under IDEs. r15911 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15912 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-19[1.2.X] Fixed #15565: Ensure terminal echo is on after reloader reloads ↵Karen Tracey
(something turns it off on some systems if reload happens while at a pdb prompt). Thanks for the report zimnyx. r15883 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15884 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-15[1.2.X] Fixed #15617 - CSRF referer checking too strictLuke Plant
Thanks to adam for the report. Backport of [15840] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15844 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-03[1.2.X] Fixed #15543 -- Tweaked change from r15696 to not use 'if' syntax ↵Ramiro Morales
introduce in Python 2.5. Thanks to an anonymous reporter for the heads up. Backport of [15731] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15732 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-01[1.2.X] Fixed #717 - If-Modified-Since handling should compare dates ↵Luke Plant
according to RFC 2616 Thanks to Maniac for the report, julienb for the initial patch, and especially to aaugustin for the final patch and tests. Backport of [15696] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15697 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-12[1.2.X] Fixed #15237 -- Always set charset of Atom1 feeds to UTF-8. Thanks, ↵Jannis Leidel
Simon and jasonkotenko. Backport from trunk (r15505). git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15512 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-12[1.2.X] Fixed #14132 -- Fixed feedgenerator to support years < 1900. Thanks, mk.Jannis Leidel
Backport from trunk (r15503). git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15510 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-04[1.2.X] Fixed #15181 -- Ensure that special characters are escaped when ↵Russell Keith-Magee
querying for the URL of an uploaded file. Thanks to e.generalov for the report and patch. Backport of r15409 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15410 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-04[1.2.X] Fixed #14824 -- Corrected the handling of formats when USE_L10N is ↵Russell Keith-Magee
disabled. Thanks to nullie for the report and initial patch, and to idle for the separate report with helpful debug info. Backport of r15404 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-03[1.2.X] Fixed #15129 -- Fixed stability of data input/output L10N format ↵Ramiro Morales
modules priority order. Thanks tonnzor for the report and fix. Backport of [15402] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15403 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-01[1.2.X] Fixed #13283 -- Corrected CACHE_MIDDLEWARE_ANONYMOUS_ONLY's bad ↵Carl Meyer
habit of setting Vary: Cookie on all responses and destroying cache efficiency. Thanks to natrius for the fix. Backport of r15381 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15382 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-30[1.2.X] Fixed #14698 -- Ensure that module_has_sumodule doesn't mistake a ↵Russell Keith-Magee
cache miss for an existent package. Thanks to Łukasz Rekucki for the report and patch, and to shields for the test case. Backport of r15362 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15364 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-24[1.2.X] Fixed #15067 -- Modified the range checks on base36_to_int so you ↵Russell Keith-Magee
are guaranteed to always get an int, avoiding possible OverflowErrors. Thanks to Garthex for the report, jboutros for the patch, and kfrazier for the feedback. Backport of r15288 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15289 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-17[1.2.X] Fixed #13062 -- Ensure that runserver exposes all warnings requested ↵Russell Keith-Magee
at the command line. Thanks to gremmie for the report, and claudep for the patch. Backport of r15233 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15234 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-13[1.2.X] Fixed #2986 -- Made the JavaScript code that drives related model ↵Ramiro Morales
instance addition in a popup window handle a model representation containing new lines. Also, moved the escapejs functionality to django.utils.html so it can be used from Python code. Thanks andrewwatts for the patch. Backport of [15131] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15191 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-13[1.2.X] Fixed #15024 -- Ensure that choice of L10N format module used is ↵Ramiro Morales
stable given a stable setup of format modules in ll/ and ll_CC/ dirs. Thanks David Reynolds for the report and suggestions leading to the solution. Backport of [15183] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15184 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-23Fix a security issue in the auth system. Disclosure and new release forthcoming.Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15034 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-04[1.2.X] Fixed #14807 -- Ensure that boolean values aren't localized as T.rue ↵Russell Keith-Magee
and Fa.lse because of the thousand separator. Thanks to vanschelven for the report and Backport of r14804 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14807 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-14[1.2.X] Fixed #3055 -- Validate that models target of a GenericRelation have ↵Ramiro Morales
a GenericForeignKey field. Thanks jason for diagnosing the problem and Marcos Moyano for the patch. Backport of [14563] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14565 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-04[1.2.X] Fixed #11966 -- Made it possible to use a percent sign in a ↵Jannis Leidel
translation message id. Thanks for the patch, Claude Paroz. Backport from trunk (r14459). git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14460 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-21[1.2.X] Revert [13850], this was a new feature not a bugfix.Chris Beaven
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14316 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09[1.2.X] Fixed #11509 -- Modified usage of "Web" to match our style guide in ↵Russell Keith-Magee
various documentation, comments and code. Thanks to timo and Simon Meers for the work on the patch Backport of r14069 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14072 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-27[1.2.X] Fixed #14053 -- Also localize long integers. Thanks, David Danier.Jannis Leidel
Backport from trunk (r13920). git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13921 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-27[1.2.X] Fixed #14290 -- Made format localization faster by caching the ↵Jannis Leidel
format modules. Thanks, Teemu Kurppa and Anssi Kääriäinen for the report and initial patches. Backport from trunk (r13898). git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13903 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-13[1.2.X] Fixed #13765 - 'safe' parameter for urlencode filterLuke Plant
Thanks to KyleMac for the suggestion and SmileyChris for the patch Backport of [13849] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13850 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-12[1.2.X] Fixed #13702 -- Made sure to actually fall back to the l10n format ↵Jannis Leidel
strings provided in the settings, when disabled. Backport from trunk (r13770). git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13771 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-11[1.2.X] Fixed #12632 -- Improved performance of `SortedDict`. Thanks, Alex ↵Justin Bronn
Gaynor. Backport of r13742 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13743 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-07[1.2.X] Fixed #11021 -- Clarified newline stripping behavior in the ↵Russell Keith-Magee
truncatewords and truncatewords_html filters. Thanks to Ben Spaulding for the report and patch. Backport of r13555 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13562 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-28Fixed #13653: Fixed django.utils.hashcompat to support running on Python 2.4 ↵Karen Tracey
with standalone hashlib. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13310 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-16Fixed #13547 -- Made sure the ISO 8601 date formatting introduced in r12058 ↵Jannis Leidel
uses "T" as the separator between the date and the time value to increase real world usefulness. While the ISO standard permits the use of a space instead of "T" for readability, it does have an impact on standards like HTML5 which rely on specific rules made in RFC 3339. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13266 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-13Corrected 'name' of functions wrapped with method_decoratorLuke Plant
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13249 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-08Fixed #3469 -- added django.utils documentation for stable bitsBrian Rosner
Thanks to Rupe and Ramiro Morales for their initial work on this patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13140 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-04Fixed #12164 -- Removed the Python 2.3 compatibility imports and ↵Russell Keith-Magee
workarounds. Thanks to timo and claudep for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-04Fixed #13464 -- Reworked module_has_submodule to break the requirement for ↵Russell Keith-Magee
loader and finder to be the same class. Thanks to Alex Gaynor for the report and patch, and Brett Cannon for suggesting the approach. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13082 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-29Fixed #11068 - Introduced new language code "nb" for Norwegian Bokmål as a ↵Jannis Leidel
replacement of the current "no". git-svn-id: http://code.djangoproject.com/svn/django/trunk@13047 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-25Fixed #13404 -- Reworked module_has_submodule() to allow it to work under ↵Russell Keith-Magee
AppEngine. Thanks to Waldemar Kornewald for the report and testing help. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13023 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-19Fixed #13370 -- Corrected the handling of pickling for lazy() proxy objects. ↵Russell Keith-Magee
Thanks to Alex Gaynor for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13000 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-15Fixed #13348: Restored ability to load models from apps in eggs. Thanks ↵Karen Tracey
Ramiro and metzen for pointers on how to find out if a module loaded from an egg has a particular submodule. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12982 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-29Fixed #13234 -- Rejiggered the imports in the translation utils . Thanks to ↵Russell Keith-Magee
roklenardic and Spark23 for their reports, and to Alex for his suggestion on a potential fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12875 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-27Fixed #12769, #12924 -- Corrected the pickling of curried and lazy objects, ↵Russell Keith-Magee
which was preventing queries with translated or related fields from being pickled. And lo, Alex Gaynor didst slayeth the dragon. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12866 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-20Fixed #13054 - Only apply grouping to integer part of numbers if explicitly ↵Jannis Leidel
wanted. Thanks, Ramiro Morales. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12816 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-18Fixed #12849 -- Corrected the way strings are encoded for display by the ↵Russell Keith-Magee
colorizer so that they work with unicode. Thanks to jype for the report, and frasern for his work on the issue. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-12Fixed #13093 -- Updated some decorators and the decorator_from_middleware ↵Russell Keith-Magee
function to allow callable classes to be decorated. Thanks to Brian Neal for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12762 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-01Fixed #12779 - Sanitize numeric form field input according to decimal and ↵Jannis Leidel
thousand separator settings. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12625 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-01Refined changes made in r12546 to also respect the request.LANGUAGE_CODE in ↵Jannis Leidel
case the LocaleMiddleware is used to discover the language preference. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12624 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-28Fixed #12302: Modified force_unicode to avoid raising unicode errors whenKaren Tracey
handed exceptions with non-ASCII bytestring data and no working unicode method under Python 2.6 and higher. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12621 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-24Fixed #12119. Changed smart_split to stop splitting on whitespace in quotes. ↵Joseph Kocherhans
Thanks, emulbreh. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12581 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-23Fixed #5691 - Adds the active language to the cache key. Thanks, Antoni ↵Jannis Leidel
Aloy, Ramiro Morales and Yann Malet. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12546 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-22Fixed #12820. Implemented other dict methods for MergeDict. Thanks, Gisle Aas.Joseph Kocherhans
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12498 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-16Fixed #11384 - Make sure translations in the project directory really ↵Jannis Leidel
override translations in apps as specified in the docs. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12447 bcc190cf-cafb-0310-a4f2-bffc1f526a37