summaryrefslogtreecommitdiff
path: root/cherrypy/lib/cptools.py
diff options
context:
space:
mode:
authorRobert Brewer <fumanchu@aminus.org>2006-08-10 17:32:39 +0000
committerRobert Brewer <fumanchu@aminus.org>2006-08-10 17:32:39 +0000
commit262c7a4d11e650807e1f9274aaf667bea0d47f1a (patch)
tree4bdf811bef99a771c02e382ff54af5203f10ad13 /cherrypy/lib/cptools.py
parent4ddf97fb602922e1e6661382e2bb0094b16398ac (diff)
downloadcherrypy-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.py9
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'):