Django

Code

Ticket #8447 (assigned)

Opened 4 months ago

Last modified 4 months ago

with change in behavior to MultiValueDict.iteritems, there should be a MultiValueDict.iterlists

Reported by: jamesturk Assigned to: jamesturk (accepted)
Milestone: Component: Core framework
Version: SVN Keywords: multivaluedict
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Changeset [8399] changed the value of MultiValueDict?'s iteritems to return singular items instead of lists (closing #7331) and some people may depend on the ability to iterate over the lists.

There is already a lists() method that is the analog of items(), it seems reasonable that there should be an equivalent iterlists() method that simply does what iteritems() used to do.

related django-developers discussion: http://groups.google.com/group/django-developers/browse_thread/thread/cb99e60e7ed86386

Attachments

iterlists.diff (2.1 kB) - added by jdunck on 08/20/08 10:15:23.
addition of iterlists, a test for them matching the iteritems test, and documentation noting they exist
iterlists.2.diff (2.1 kB) - added by jamesturk on 08/21/08 08:51:08.
adds small documentation fix to patch

Change History

08/20/08 10:15:23 changed by jdunck

  • attachment iterlists.diff added.

addition of iterlists, a test for them matching the iteritems test, and documentation noting they exist

08/20/08 10:17:34 changed by jamesturk

  • owner changed from nobody to jamesturk.
  • needs_better_patch changed.
  • status changed from new to assigned.
  • needs_tests changed.
  • needs_docs changed.

first patch has a small error in the documentation

08/20/08 10:19:19 changed by jamesturk

weird.. after trying to update my patch it now says the first patch was submitted by jdunck?

08/20/08 10:19:39 changed by jamesturk

  • has_patch set to 1.

08/21/08 08:51:08 changed by jamesturk

  • attachment iterlists.2.diff added.

adds small documentation fix to patch


Add/Change #8447 (with change in behavior to MultiValueDict.iteritems, there should be a MultiValueDict.iterlists)




Change Properties
Action