Changeset 2021
- Timestamp:
- 07/16/08 13:58:10
- Files:
-
- trunk/cherrypy/lib/sessions.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/lib/sessions.py
r1932 r2021 283 283 LOCK_SUFFIX = '.lock' 284 284 285 def __init__(self, id=None, **kwargs): 286 # The 'storage_path' arg is required for file-based sessions. 287 kwargs['storage_path'] = os.path.abspath(kwargs['storage_path']) 288 Session.__init__(self, id=id, **kwargs) 289 285 290 def setup(cls, **kwargs): 286 291 """Set up the storage system for file-based sessions. … … 289 294 automatically when using sessions.init (as the built-in Tool does). 290 295 """ 291 if 'storage_path' in kwargs:292 kwargs['storage_path'] = os.path.abspath(kwargs['storage_path'])296 # The 'storage_path' arg is required for file-based sessions. 297 kwargs['storage_path'] = os.path.abspath(kwargs['storage_path']) 293 298 294 299 for k, v in kwargs.iteritems():

