Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#1339 closed enhancement (fixed)

SessionWrapper doesn't have enough dictionary goodness

Reported by: anonymous 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


For some debugging middleware, I'd like to dump the session data. But though request.session is described as "a dictionary-like object", it doesn't have a keys() or items() method that could be used to access all of the session data without know upfront what keys to expect.

The attached patch adds these methods.

Attachments (1)

sessions.diff (502 bytes) - added by ned@… 14 years ago.
Patch to

Download all attachments as: .zip

Change History (2)

Changed 14 years ago by ned@…

Attachment: sessions.diff added

Patch to

comment:1 Changed 14 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [2300]) Fixed #1339 -- Added keys() and items() methods to session objects. Thanks, Ned Batchelder

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