#709 closed defect (fixed)
The MultiValueDict in datastructures.py should have a "__contains__" method defined
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
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: | no | UI/UX: | no |
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)
Change History (7)
by , 19 years ago
Attachment: | datastructures.diff added |
---|
comment:1 by , 19 years ago
Type: | enhancement → defect |
---|
comment:3 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
what is holding back implementing this fix in trunk? I keep running into this bug. I changed it to a defect.