Code

Ticket #1137: sessionwrapper.diff

File sessionwrapper.diff, 484 bytes (added by brantley, 8 years ago)

patch for problem

Line 
1Index: sessions.py
2===================================================================
3--- sessions.py (revision 1766)
4+++ sessions.py (working copy)
5@@ -9,7 +9,10 @@
6 class SessionWrapper(object):
7     def __init__(self, session_key):
8         self.session_key = session_key
9-        self.modified = False
10+        self.modified = False
11+
12+    def __contains__(self, key):
13+        return key in self._session
14 
15     def __getitem__(self, key):
16         return self._session[key]