Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#1339 closed enhancement (fixed)

SessionWrapper doesn't have enough dictionary goodness

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


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@… 10 years ago.
Patch to

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by ned@…

Patch to

comment:1 Changed 10 years ago by adrian

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

(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