changeset 4192:105c5469ac05

Use session service in the WSGI app
author Florian Krupicka <florian.krupicka@googlemail.com>
date Wed, 25 Jun 2008 01:04:42 +0200
parents 5fdb6f984a54
children 1e954e802ed2
files MoinMoin/wsgiapp.py
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/wsgiapp.py	Wed Jun 25 01:03:44 2008 +0200
+++ b/MoinMoin/wsgiapp.py	Wed Jun 25 01:04:42 2008 +0200
@@ -33,13 +33,7 @@
     request.clock.start('total')
     request.clock.start('base__init__')
 
-    user_obj = request.cfg.session_handler.start(request, request.cfg.session_id_handler)
-    request.user = handle_auth_form(user_obj, request)
-
-    request.cfg.session_handler.after_auth(request, request.cfg.session_id_handler, request.user)
-
-    if not request.user:
-        request.user = user.User(request, auth_method='request:invalid')
+    request.session = request.cfg.session_service.get_session(request)
 
     check_setuid(request)
     check_forbidden(request)
@@ -171,6 +165,7 @@
         request.timing_log(False, action_name)
 
         #return request.finish()
+    request.cfg.session_service.finalize(request, request.session)
     return request
 
 def application(request):