#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 |
Description
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)
Change History (2)
by , 19 years ago
Attachment: | sessions.diff added |
---|
comment:1 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch to sessions.py