Changeset 8410
- Timestamp:
- 08/16/08 10:54:36 (4 months ago)
- Files:
-
- django/trunk/django/contrib/sessions/backends/cache.py (modified) (1 diff)
- django/trunk/django/contrib/sessions/tests.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/contrib/sessions/backends/cache.py
r8381 r8410 15 15 return session_data 16 16 self.create() 17 return {} 17 18 18 19 def create(self): django/trunk/django/contrib/sessions/tests.py
r8351 r8410 11 11 >>> db_session.modified 12 12 False 13 >>> db_session.get('cat') 13 14 >>> db_session['cat'] = "dog" 14 15 >>> db_session.modified … … 43 44 >>> db_session = DatabaseSession(db_session.session_key) 44 45 >>> db_session.save() 46 >>> DatabaseSession('1').get('cat') 45 47 46 48 >>> file_session = FileSession() … … 60 62 >>> file_session.exists(file_session.session_key) 61 63 False 64 >>> FileSession('1').get('cat') 62 65 63 66 >>> file_session['foo'] = 'bar' … … 113 116 >>> cache_session = CacheSession(cache_session.session_key) 114 117 >>> cache_session.save() 118 >>> CacheSession('1').get('cat') 115 119 116 120 >>> s = SessionBase()
