Opened 7 years ago

Closed 7 years ago

#4483 closed (invalid)

request/response docs don't mention that request.has_key() is deprecated

Reported by: anonymous Owned by: jacob
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Earlier: a short discussion of me solving a problem by using request.has_key("buttonname") to work out which button on a form had been pushed.

23:58 < Magus-> don't use has_key
23:58 < Magus-> it's going away
23:58 < karl> well, can someone update the docs then?
23:58 < karl> there's no indication of @deprecated
23:59 < Magus-> open a ticket for updating the docs :)
23:59 < Magus-> if 'somekey' in request.POST: works fine

Here's the ticket.

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by mtredinnick

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Since has_key() exists in Python 2.3, 2.4 and 2.5 and will be in all 2.x releases, it's hardly "going away".

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.