summaryrefslogtreecommitdiff
path: root/django/utils/datastructures.py
Commit message (Collapse)AuthorAgeFilesLines
* queryset-refactor: Merged from trunk up to [7151].Malcolm Tredinnick2008-02-231-0/+4
| | | | git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7152 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* queryset-refactor: Merged from turnk up to [7135] because I need some stuff.Malcolm Tredinnick2008-02-201-1/+1
| | | | git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7136 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* queryset-refactor: Merged from trunk up to [7122].Malcolm Tredinnick2008-02-161-1/+1
| | | | git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7124 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* queryset-refactor: Merged changes from trunk up to [7085].Malcolm Tredinnick2008-02-041-4/+5
| | | | git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7086 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* queryset-refactor: Merged from trunk up to [6856].Malcolm Tredinnick2007-12-031-3/+3
| | | | git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6857 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* queryset-refactor: Merged from trunk up to [6752].Malcolm Tredinnick2007-11-291-1/+4
| | | | git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6753 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* queryset-refactor: Merged from trunk up to [6724].Malcolm Tredinnick2007-11-281-32/+39
| | | | git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6726 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* queryset-refactor: Merged from trunk up to [6689].Malcolm Tredinnick2007-11-181-5/+3
| | | | git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6690 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* queryset-refactor: Merged from trunk up to [6595].Malcolm Tredinnick2007-10-231-20/+53
| | | | git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6597 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* queryset-refactor: Merged changed from trunk up to [6463].Malcolm Tredinnick2007-10-081-1/+1
| | | | git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6466 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* queryset-refactor: Merged to [6381]Adrian Holovaty2007-09-201-0/+20
| | | | git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6382 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* queryset-refactor: Merged to [6300]Adrian Holovaty2007-09-151-9/+7
| | | | git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6340 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