summaryrefslogtreecommitdiff
path: root/src/meetingtools/apps/room
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-05-25 21:58:42 +0200
committerLeif Johansson <leifj@sunet.se>2011-05-25 21:58:42 +0200
commit14861dd94579f4e98463d4185fd137f58ffe8107 (patch)
tree9104beed5f78a128f8620598f0d1b1ee500702fb /src/meetingtools/apps/room
parentcbb98f126e878dbe16df32f2833e121df177637a (diff)
new secret api..
Diffstat (limited to 'src/meetingtools/apps/room')
-rw-r--r--src/meetingtools/apps/room/views.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/meetingtools/apps/room/views.py b/src/meetingtools/apps/room/views.py
index 6df49fe..ba1c8d3 100644
--- a/src/meetingtools/apps/room/views.py
+++ b/src/meetingtools/apps/room/views.py
@@ -349,8 +349,13 @@ def _goto(request,room,clean=True,promote=False):
room.lastvisited = datetime.now()
if clean:
- session_info = api.request('report-meeting-sessions',{'sco-id':room.sco_id})
- room.user_count = _nusers(session_info)
+ userlist = api.request('meeting-usermanager-user-list',{'sco-id': room.sco_id},False)
+ room.user_count = 0
+ if userlist.status_code() == 'ok':
+ room.user_count = userlist.et.xpath("count(.//userdetails)")
+
+ #session_info = api.request('report-meeting-sessions',{'sco-id':room.sco_id})
+ #room.user_count = _nusers(session_info)
logging.debug("---------- nusers: %s" % room.user_count)
room.save()
if room.self_cleaning: