summaryrefslogtreecommitdiff
path: root/src/meetingtools/apps
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-05-10 10:18:58 +0200
committerLeif Johansson <leifj@sunet.se>2011-05-10 10:18:58 +0200
commitc30b866cba6e27f8bf2e3de658be07aaf20cc59f (patch)
tree917dd8cddcc5bf24fd75324ca79d84577ffc2cef /src/meetingtools/apps
parent4e14a262829b763a6bcbd7e8fc376b51c1094509 (diff)
session mod
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)