diff options
author | Leif Johansson <leifj@sunet.se> | 2011-05-10 12:44:54 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-05-10 12:44:54 +0200 |
commit | 0457102e0ad40c41e910ab4b66d0ba8e36e9797e (patch) | |
tree | 8a0469a8d65eea13c9b4105ff37082a0b782313c | |
parent | 352a03eb4c2ba09f1f0f92efc160405c8e714ef9 (diff) |
sessions
-rw-r--r-- | src/meetingtools/apps/auth/views.py | 3 | ||||
-rw-r--r-- | src/meetingtools/apps/room/views.py | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/meetingtools/apps/auth/views.py b/src/meetingtools/apps/auth/views.py index 6b7e43d..f565509 100644 --- a/src/meetingtools/apps/auth/views.py +++ b/src/meetingtools/apps/auth/views.py @@ -133,8 +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("key %s" % request.session['ac_key']) - logging.debug("++++++++++ %s" % request.session.session_key) + #request.session.save() 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 7465ef6..81ce1dc 100644 --- a/src/meetingtools/apps/room/views.py +++ b/src/meetingtools/apps/room/views.py @@ -342,8 +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) + key = request.session.get('ac_key',None) if key: user_client = ACPClient(room.acc.api_url, request.user.username, key, cache=False) return user_client.redirect_to(room.acc.url+urlpath) |