Changeset 1721
- Timestamp:
- 09/18/07 12:14:06
- Files:
-
- trunk/cherrypy/_cptools.py (modified) (1 diff)
- trunk/cherrypy/lib/sessions.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cptools.py
r1698 r1721 211 211 212 212 def _lock_session(self): 213 cherrypy. _serving.session.acquire_lock()213 cherrypy.serving.session.acquire_lock() 214 214 215 215 def _setup(self): trunk/cherrypy/lib/sessions.py
r1708 r1721 402 402 """Save any changed session data.""" 403 403 404 if not hasattr(cherrypy. _serving, "session"):404 if not hasattr(cherrypy.serving, "session"): 405 405 return 406 406 … … 424 424 def close(): 425 425 """Close the session object for this request.""" 426 sess = getattr(cherrypy. _serving, "session", None)426 sess = getattr(cherrypy.serving, "session", None) 427 427 if sess and sess.locked: 428 428 # If the session is still locked we release the lock … … 466 466 id = request.cookie[name].value 467 467 468 # Create and attach a new Session instance to cherrypy. _serving.468 # Create and attach a new Session instance to cherrypy.serving. 469 469 # It will possess a reference to (and lock, and lazily load) 470 470 # the requested session data. … … 472 472 kwargs['timeout'] = timeout 473 473 kwargs['clean_freq'] = clean_freq 474 cherrypy. _serving.session = sess = globals()[storage_class](id, **kwargs)475 476 # Create cherrypy.session which will proxy to cherrypy. _serving.session474 cherrypy.serving.session = sess = globals()[storage_class](id, **kwargs) 475 476 # Create cherrypy.session which will proxy to cherrypy.serving.session 477 477 if not hasattr(cherrypy, "session"): 478 478 cherrypy.session = cherrypy._ThreadLocalProxy('session')

