diff options
author | Leif Johansson <leifj@sunet.se> | 2011-05-10 10:18:58 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-05-10 10:18:58 +0200 |
commit | c30b866cba6e27f8bf2e3de658be07aaf20cc59f (patch) | |
tree | 917dd8cddcc5bf24fd75324ca79d84577ffc2cef /src/meetingtools/apps | |
parent | 4e14a262829b763a6bcbd7e8fc376b51c1094509 (diff) |
session mod
Diffstat (limited to 'src/meetingtools/apps')
-rw-r--r-- | src/meetingtools/apps/room/views.py | 5 |
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) |