From 991f1525a044291dcd032207825d96de35ad3272 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Tue, 10 May 2011 12:24:27 +0200 Subject: sessions --- src/meetingtools/apps/auth/views.py | 1 + src/meetingtools/apps/room/views.py | 1 + 2 files changed, 2 insertions(+) (limited to 'src') diff --git a/src/meetingtools/apps/auth/views.py b/src/meetingtools/apps/auth/views.py index 7b2e0b8..31159aa 100644 --- a/src/meetingtools/apps/auth/views.py +++ b/src/meetingtools/apps/auth/views.py @@ -133,6 +133,7 @@ def accounts_login_federated(request): # make sure the principal is created before shooting off key = _random_key() request.session['ac_key'] = key + logging.debug("++++++++++ %s" % request.session.session_key) principal = connect_api.find_or_create_principal("login", request.user.username, "user", {'type': "user", 'has-children': "0", diff --git a/src/meetingtools/apps/room/views.py b/src/meetingtools/apps/room/views.py index aa22899..7465ef6 100644 --- a/src/meetingtools/apps/room/views.py +++ b/src/meetingtools/apps/room/views.py @@ -342,6 +342,7 @@ def goto(request,room): r = api.request('sco-info',{'sco-id':room.sco_id}) urlpath = r.et.findtext('.//sco/url-path') + logging.debug("++++++++++ %s" % request.session.session_key) key = request.session.get('acp_key',None) if key: user_client = ACPClient(room.acc.api_url, request.user.username, key, cache=False) -- cgit v1.1