Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#709 closed defect (fixed)

The MultiValueDict in datastructures.py should have a "__contains__" method defined

Reported by: brantley (deadwisdom@… Owned by: adrian
Component: Core (Other) Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

The MultiValueDict in datastructures.py should have a "contains" method defined, so that one can do:

if ('world' in request.GET):
    destroy_world(request.GET['world'])

Although, the destroy_world function is left as an exercise for the reader.

A simple patch which concerns datastructures.py is included.

Attachments (1)

datastructures.diff (431 bytes) - added by brantley (deadwisdom@… 10 years ago.

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by brantley (deadwisdom@…

comment:1 Changed 10 years ago by anonymous

  • Type changed from enhancement to defect

what is holding back implementing this fix in trunk? I keep running into this bug. I changed it to a defect.

comment:2 Changed 10 years ago by adrian

I've been waiting for an implementation of the destroy_world function.

comment:3 Changed 10 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(In [1498]) Fixed #709 -- Added a contains method to MultiValueDict. Thanks, Brantley

comment:4 Changed 10 years ago by django@…

destroy_world is implemented in #736.

comment:5 Changed 10 years ago by adrian

Coincidentally, I'm working on that patch right now. :)

comment:6 Changed 10 years ago by kevin stone

bien, gracious.

Note: See TracTickets for help on using tickets.
Back to Top