diff options
author | Robert Brewer <fumanchu@aminus.org> | 2006-08-10 17:32:39 +0000 |
---|---|---|
committer | Robert Brewer <fumanchu@aminus.org> | 2006-08-10 17:32:39 +0000 |
commit | 262c7a4d11e650807e1f9274aaf667bea0d47f1a (patch) | |
tree | 4bdf811bef99a771c02e382ff54af5203f10ad13 /cherrypy/lib/cptools.py | |
parent | 4ddf97fb602922e1e6661382e2bb0094b16398ac (diff) | |
download | cherrypy-git-262c7a4d11e650807e1f9274aaf667bea0d47f1a.tar.gz |
Revamped session module. Much better tests. Cleanup is now in a separate, cycling Timer thread (with an entry in on_stop_engine_list). Moved cherrypy.request._session to cherrypy.serving.session.
Diffstat (limited to 'cherrypy/lib/cptools.py')
-rw-r--r-- | cherrypy/lib/cptools.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/cherrypy/lib/cptools.py b/cherrypy/lib/cptools.py index baef0865..ef25c1a9 100644 --- a/cherrypy/lib/cptools.py +++ b/cherrypy/lib/cptools.py @@ -125,17 +125,10 @@ def session_auth(check_login_and_password=None, not_logged_in=None, request = cherrypy.request tdata = cherrypy.thread_data - sess = getattr(cherrypy, "session", None) - if sess is None: - # Shouldn't this raise an error (if the sessions tool isn't enabled)? - return False - + sess = cherrypy.session request.user = None tdata.user = None -## conf = cherrypy.config.get -## if conf('tools.staticfile.on', False) or conf('tools.staticdir.on', False): -## return if request.path.endswith('login_screen'): return False elif request.path.endswith('do_logout'): |