Changeset 445
- Timestamp:
- 07/10/05 23:01:30
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/lib/filter/sessionfilter/basesessiondict.py
r444 r445 30 30 from cherrypy.lib.filter.sessionfilter.sessionerrors import SessionImmutableError 31 31 32 from exceptions import NotImplementedError 32 33 33 34 # this is a dictionary like class that will be exposed to the application … … 54 55 pass 55 56 56 def __eq__(self, sessionDict):57 pass58 59 57 def get(self, key, default = None): 60 pass58 raise NotImplementedError() 61 59 62 60 def __getitem__(self, key): 63 pass61 raise NotImplementedError() 64 62 65 63 def __setitem__(self, key, value): 66 pass64 raise NotImplementedError() 67 65 68 66 def __getattr__(self, attr): 69 pass67 raise NotImplementedError() 70 68 71 69 def __setattr__(self, attr, value): 72 pass70 raise NotImplementedError() 73 71 74 72 def setdefault(self, key, default): 75 pass73 raise NotImplementedError() 76 74 77 75 # needed for conversion to a dict 78 76 def __iter__(self): 79 pass77 raise NotImplementedError() 80 78 81 79 def expired(self): … … 84 82 return (now - self.lastAccess) > self.timeout 85 83 86 # additional functions 84 # additional functions may/may not be necessary 87 85 ''' 88 86 def __getstate__(self):

