summaryrefslogtreecommitdiff
path: root/src/meetingtools/apps
diff options
context:
space:
mode:
Diffstat (limited to 'src/meetingtools/apps')
-rw-r--r--src/meetingtools/apps/room/views.py5
1 files changed, 3 insertions, 2 deletions
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)