Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1137 closed defect (fixed)

Add __contains__ method to SessionWrapper

Reported by: brantley 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: UI/UX:


It's usefull to be able to do if ('key' in request.session), therefore a __contains__ method should be added to the SessionWrapper. Patch attached.

Attachments (1)

sessionwrapper.diff (484 bytes) - added by brantley 12 years ago.
patch for problem

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by brantley

Attachment: sessionwrapper.diff added

patch for problem

comment:1 Changed 12 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [1793]) Fixed #1137 -- Added a _contains_() method to SessionWrapper. Thanks, Brant

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