From c30b866cba6e27f8bf2e3de658be07aaf20cc59f Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Tue, 10 May 2011 10:18:58 +0200 Subject: session mod --- src/meetingtools/apps/room/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/meetingtools/apps/room/views.py b/src/meetingtools/apps/room/views.py index 8be26c0..aa22899 100644 --- a/src/meetingtools/apps/room/views.py +++ b/src/meetingtools/apps/room/views.py @@ -342,8 +342,9 @@ def goto(request,room): r = api.request('sco-info',{'sco-id':room.sco_id}) urlpath = r.et.findtext('.//sco/url-path') - if request.session.has_key('acp_key'): - user_client = ACPClient(room.acc.api_url, request.user.username, request.session['acp_key'], cache=False) + key = request.session.get('acp_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) else: return HttpResponseRedirect(room.acc.url+urlpath) -- cgit v1.1