summaryrefslogtreecommitdiff
path: root/django/utils
AgeCommit message (Collapse)Author
2007-04-09Fixed #3958 -- Added lastBuildDate element to RSS feeds. Thanks,Malcolm Tredinnick
baptiste.goupil@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-05Backed out a portion of [4919] until I can make it worth smoothly withMalcolm Tredinnick
oldforms. Refs #3924. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4933 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-05Small fix to [4931].Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4932 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-05Fixed #3918 -- Handle technical message IDs correctly when settings.USE_I18N isMalcolm Tredinnick
False. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4931 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-04Added a FIXME that I forgot to include earlier.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4923 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-04Made django.utils.html.escape() work with unicode strings (and unicode-likeMalcolm Tredinnick
objects). Refs #3897. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4919 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-04Moved smart_unicode and StrAndUnicode to django.utils.encoding. They are usefulMalcolm Tredinnick
outside of newforms. This is backwards compatible as far as smart_unicode goes (since newforms.util still imports it). All imports of smart_unicode and StrAndUnicode have also been updated. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4918 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-03Fixed #3900 -- Included missing function in utils/translation/__init__.py.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4907 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-02Delayed the reading of settings.USE_I18N until the first use of the i18nMalcolm Tredinnick
functions. This solves a few import problems we are seeing. Fixed #3687. Refs #2920. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4905 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-30Removed some trailing whitespace that had smuggled itself aboard in [4870].Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4871 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-30Fixed #3733 -- Fixed up quote parsing in smart_split(). Thanks, Ivan Chelubeev.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4870 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-20Fixed #3714 -- Fixed handling of indented text in wordwrap template filter. ↵Russell Keith-Magee
Thanks for the fix, Ian Clelland. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4753 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-16Fixed spelling of initializing in datastructures.py commentAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4744 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-11Fixed #2998 -- Wrapped a couple more strings for translation. Thanks, JannisMalcolm Tredinnick
Leidel. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4701 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-09Fixed #3678 -- Implemented SortedDict.copy().Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4688 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-28Fixed #3488: Added "b" option to date format filter. Thanks, Gary Wilson.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4647 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-28Fixed #2779: added a copy() method to MergeDict, along with some new tests ↵Jacob Kaplan-Moss
for django.utils.datastructures. Thanks, Chris McAvoy. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4640 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-25Fixed #2620: made MergeDict.get() correctly work with the two-argument form ↵Jacob Kaplan-Moss
of get(). Thanks for the patch, SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4576 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-11Revert [4485] in order to fix accidental mod_python breakage. Refs #2920.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4486 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-11Refs #2920 -- Replaced implicit uses of _() with explicit imports or calls ↵Russell Keith-Magee
to gettext(). At some point post 0.96, we need to remove the calls that put _ into the builtins. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4485 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-10Fixed #2762 -- added copyright element support to RSS and Atom feeds. PatchMalcolm Tredinnick
from Jonathan Buchanan. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4478 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-01-30Fixed #3320: upgraded django.utils.simplejson to simplejson version 1.5. ↵Jacob Kaplan-Moss
Thanks, Lawrence Oluyede. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4454 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-01-21Added SortedDict.value_for_index() method in django.utils.datastructuresAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4373 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-18Changed dateformat 'M' to use MONTHS_3 instead of MONTHS, for better support ↵Adrian Holovaty
of translations git-svn-id: http://code.djangoproject.com/svn/django/trunk@4226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-12-15Vastly improved performance of django.utils.text.wrap. Thanks to GvR for ↵Jacob Kaplan-Moss
the impetus and Micael Radziej for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4213 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-26Fixed #2823 -- Fixed Python 2.3 compatibility problem pointed out by Alex Dedul.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3853 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-26Fixed #2265 -- Fixed problem with using iterators for "choices" attribute.Malcolm Tredinnick
Thanks, Alex Dedul. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3851 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-24Fixed #2677 -- Removed the need to import sre and hence avoid aMalcolm Tredinnick
DeprecationWarning. Thanks, Tom Tobin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3814 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-23Fixed #2791 -- Added __contains__ method (for "a in dict" checks) to MergeDict.Malcolm Tredinnick
Thanks, Ned Batchelder. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3808 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-22Fixed #2657 -- Made some tweaks to Javascript quoting. Thanks, Alex Dedul.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3782 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-07Renamed 'func' argument in django.utils.functional.curry to reduce ↵Adrian Holovaty
possibility that it will clash with a keyword argument name. Thanks for pointing this out, Michael Spencer git-svn-id: http://code.djangoproject.com/svn/django/trunk@3735 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-07Optimized django.utils.functional.curry. Thanks for the patch, Martin GlueckAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3733 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-31Fixed #2441 -- Improved MultiValueDict.update() to take keyword args, like ↵Adrian Holovaty
Python 2.4 built-in dict. Thanks for the patch, Pete Shinners git-svn-id: http://code.djangoproject.com/svn/django/trunk@3692 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-28Fixed #2330 -- Added hack to stop KeyErrors from being thrown by the ↵Adrian Holovaty
autoreloading development server if USE_I18N=False git-svn-id: http://code.djangoproject.com/svn/django/trunk@3482 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-27Fixed #2408 -- Added get_language_from_request() to trans_null.py. Thanks, ↵Adrian Holovaty
ubernostrum git-svn-id: http://code.djangoproject.com/svn/django/trunk@3458 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-21Second half of little cleanup tweaks suggested by pyflakes.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-14Added check_for_language and to_locale to utils.translation.trans_nullAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3344 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-11Added get_language_bidi to django.utils.translation.trans_nuill. Refs #2203Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3329 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-10Fixed bug in utils.translation.trans_null -- get_date_formats and ↵Adrian Holovaty
get_partial_date_formats weren't returning tuples properly git-svn-id: http://code.djangoproject.com/svn/django/trunk@3306 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-08Fixed #2310 -- Changed trans_null.py to use settings.LANGUAGE_CODE instead ↵Adrian Holovaty
of hard-coded 'en' git-svn-id: http://code.djangoproject.com/svn/django/trunk@3298 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-07Fixed #2258 -- Accounted for the case of a missing threading library in ↵Adrian Holovaty
django.utils.synch. Thanks, scott@clued-in.co.uk git-svn-id: http://code.djangoproject.com/svn/django/trunk@3286 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-04Made django/utils/translation.py into a package django/utils/translation, ↵Adrian Holovaty
which is loaded lazily depending on the value of settings.USE_I18N. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3271 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-28Added Bob Ippolito's simplejson (http://undefined.org/python/#simplejson) as ↵Jacob Kaplan-Moss
{{{django.auth.simplejson}}}. This is version 1.3 of simplejson. Thanks to Bob for his code and his permission to include it. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3232 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-21Fixed #2163 -- Corrected typo when handling datetimes with timezones in the ↵Malcolm Tredinnick
timesince filter. Thanks, Alex Dedul. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3186 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-21Fixed #2053 -- added an optional comparison argument to the "timesince" filter.Malcolm Tredinnick
Added a "timeuntil" filter that works analogously. Thanks, john@sneeu.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20Added django/core/servers/fastcgi.py and manage.py 'runfcgi' option. Thanks, ↵Adrian Holovaty
jcrasta@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@3174 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-19Fixed #1473 -- Added support for categories back into syndication feedsMalcolm Tredinnick
(was accidently removed in r1994). Thanks, k.shaposhnikov@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@3143 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-08Fixed #2109 -- Convert old-style classes to new-style classes throughout ↵Adrian Holovaty
Django. Thanks, Nicola Larosa git-svn-id: http://code.djangoproject.com/svn/django/trunk@3113 bcc190cf-cafb-0310-a4f2-bffc1f526a37