Opened 17 years ago
Closed 16 years ago
#7429 closed (fixed)
Make SessionBase more dictionary-like
Reported by: | Jeremy Dunck | Owned by: | nobody |
---|---|---|---|
Component: | contrib.sessions | Version: | dev |
Severity: | Keywords: | ||
Cc: | davidgouldin@… | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
SessionBase is missing the following dictionary methods:
>>> engine = __import__(settings.SESSION_ENGINE, {}, {}, ['']) >>> session = engine.SessionStore(None) >>> set(dir(dict)) - set(dir(session)) set(['__ne__', '__ge__', 'fromkeys', '__eq__', 'clear', '__gt__', 'update', '__cmp__', '__le__', '__iter__', 'has_key', 'values', 'iterkeys', 'itervalues', 'iteritems', '__lt__', 'copy', 'popitem', '__len__'])
This patch adds support for update, has_key, values, iterkeys, itervalues, and iteritems.
Includes tests.
Attachments (2)
Change History (5)
by , 17 years ago
Attachment: | session-dictlike.diff added |
---|
comment:1 by , 17 years ago
Cc: | added |
---|
comment:2 by , 17 years ago
Has patch: | set |
---|---|
Triage Stage: | Unreviewed → Ready for checkin |
comment:3 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
As of Django svn 7543.