summaryrefslogtreecommitdiff
path: root/django/utils/datastructures.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed #5744 -- Allowed SortedDict contructor to be passed a list of tuples ↵Gary Wilson Jr2007-10-141-1/+4
| | | | | | to match the interface of dict, thanks Thomas Güttler. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6506 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #5540 -- Made __repr__() for MultiValueDict more generic. Thanks, ↵Adrian Holovaty2007-09-201-1/+1
| | | | | | Thomas Guttler git-svn-id: http://code.djangoproject.com/svn/django/trunk@6383 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #3993 -- Added some useful dictionary methods to SortedDict, plus an ↵Malcolm Tredinnick2007-09-161-0/+20
| | | | | | insert() method. Patch from Paul Collier. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6350 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #3036 -- Fixed some doctest strings that were failing. Thanks to pterk ↵Russell Keith-Magee2007-09-151-9/+7
| | | | | | for the original patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6268 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Refs #5138 -- Refactored implementation of __contains__ in HttpRequest ↵Russell Keith-Magee2007-09-111-3/+2
| | | | | | introduced in [6097] after a suggestion from Malcolm. Applied a similar refactor for MergeDict and Context which had comparable behavior. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6098 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #4947 -- Avoid displaying uploaded file contents in the debug web ↵Malcolm Tredinnick2007-08-121-0/+13
| | | | | | page. Based on a patch from eibaan@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5874 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #4040 -- Changed uses of has_key() to "in". Slight performanceMalcolm Tredinnick2007-04-261-1/+1
| | | | | | | | 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
* Fixed #3964 -- Added a custom SortedDict.__repr__ so that the keys are printedMalcolm Tredinnick2007-04-251-0/+7
| | | | | | | in sorted order. Based on a patch from Forest Bond. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5069 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Removed a bunch of annoying trailing whitespace.Malcolm Tredinnick2007-04-251-6/+6
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@5068 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #4106 -- Fixed typo in datastructures.py. Thanks, Amr MostafaAdrian Holovaty2007-04-231-1/+1
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@5060 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed spelling of initializing in datastructures.py commentAdrian Holovaty2007-03-161-1/+1
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@4744 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #3678 -- Implemented SortedDict.copy().Malcolm Tredinnick2007-03-091-0/+7
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@4688 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2779: added a copy() method to MergeDict, along with some new tests ↵Jacob Kaplan-Moss2007-02-281-0/+7
| | | | | | for django.utils.datastructures. Thanks, Chris McAvoy. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4640 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2620: made MergeDict.get() correctly work with the two-argument form ↵Jacob Kaplan-Moss2007-02-251-1/+1
| | | | | | of get(). Thanks for the patch, SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4576 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Added SortedDict.value_for_index() method in django.utils.datastructuresAdrian Holovaty2007-01-211-1/+5
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@4373 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2791 -- Added __contains__ method (for "a in dict" checks) to MergeDict.Malcolm Tredinnick2006-09-231-0/+3
| | | | | | | Thanks, Ned Batchelder. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3808 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2441 -- Improved MultiValueDict.update() to take keyword args, like ↵Adrian Holovaty2006-08-311-11/+17
| | | | | | 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
* Fixed #2109 -- Convert old-style classes to new-style classes throughout ↵Adrian Holovaty2006-06-081-1/+1
| | | | | | Django. Thanks, Nicola Larosa git-svn-id: http://code.djangoproject.com/svn/django/trunk@3113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2079 -- Fixed bug introduced in [3070] in django.utils.datastructuresAdrian Holovaty2006-06-051-1/+2
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@3081 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Eliminated lots of mutable default arguments (since they are bugsLuke Plant2006-06-031-2/+3
| | | | | | | waiting to happen and are memory leaks too). git-svn-id: http://code.djangoproject.com/svn/django/trunk@3070 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly ↵Adrian Holovaty2006-05-021-1/+38
| | | | | | backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #1539 in trunkAdrian Holovaty2006-03-281-8/+13
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@2578 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Changed repr for MultiValueDictAdrian Holovaty2006-01-041-1/+1
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@1819 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #1131 -- Added repr() to MultiValueDict. Thanks, SimonAdrian Holovaty2005-12-281-0/+3
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@1789 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #736 -- Changed behavior of QueryDict items() to be more consistent, ↵Adrian Holovaty2005-11-301-49/+63
| | | | | | fixed mutability holes, gave MultiValueDict many more dictionary methods and added unit tests. Thanks, Kieran Holland. This is slightly backwards-incompatible if you happened to rely on the behavior of QueryDict.items(), which is highly unlikely. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1504 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #709 -- Added a __contains__ method to MultiValueDict. Thanks, BrantleyAdrian Holovaty2005-11-301-0/+3
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@1498 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Imported Django from private SVN repository (created from r. 8825)Adrian Holovaty2005-07-131-0/+171
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3 bcc190cf-cafb-0310-a4f2-bffc1f526a37