changeset 609:8cc90eda0688

bbb: show by macro or parser attendees of the meeting and their role
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 28 Jun 2012 17:10:20 +0200
parents 8c908e614131
children 362ea5fd96dc
files data/plugin/macro/bbb.py data/plugin/parser/bbb_create.py
diffstat 2 files changed, 16 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/macro/bbb.py	Fri Jun 22 19:32:22 2012 +0200
+++ b/data/plugin/macro/bbb.py	Thu Jun 28 17:10:20 2012 +0200
@@ -39,15 +39,20 @@
     if all_sessions:
         txt = ['= Currently active Meetings =']
     if all_sessions:
-        txt.append('|| meeting id || participation count || moderator count ||')
+        txt.append('|| meeting id || participation count || moderator count || users ||')
     for session in all_sessions:
-        meeting_id = session["info"]['invite_url'].strip('join=')
+        meeting_id = session["info"]['meeting_id']
         participation_count = session["info"]['participant_count']
         moderator_count = session["info"]['moderator_count']
+        users = session["info"]["users"]
+        users_in_meeting = ["%s %s" % (user["name"], user["role"][0]) for user in users]
+            
+        
 
-        txt.append('|| %(meeting_id)s || %(participation_count)s|| %(moderator_count)s ||' % {"meeting_id": meeting_id,
+        txt.append('|| %(meeting_id)s || %(participation_count)s|| %(moderator_count)s || %(users)s ||' % {"meeting_id": meeting_id,
                                                                                               "participation_count": participation_count,
-                                                                                              "moderator_count": moderator_count
+                                                                                              "moderator_count": moderator_count,
+                                                                                              "users": '<<BR>>'.join(users_in_meeting)
                                                                                               })
 
 
--- a/data/plugin/parser/bbb_create.py	Fri Jun 22 19:32:22 2012 +0200
+++ b/data/plugin/parser/bbb_create.py	Thu Jun 28 17:10:20 2012 +0200
@@ -79,10 +79,14 @@
     || %(meeting_id)s || 0 || 0 ||""" % {"meeting_id": meeting_id
                                          }
             if  meeting_info:
-                meeting_data = """|| '''Meeting ID''' || '''Participation Count''' || '''Moderator Count'''||
-    || %(meeting_id)s || %(participant_count)s || %(moderator_count)s ||""" % {"meeting_id": meeting_id,
+                print meeting_info
+                users = meeting_info["users"]
+                users_in_meeting = ["%s %s" % (user["name"], user["role"][0]) for user in users]
+                meeting_data = """|| '''Meeting ID''' || '''Participation Count''' || '''Moderator Count'''|| '''users''' ||
+    || %(meeting_id)s || %(participant_count)s || %(moderator_count)s || %(users)s ||""" % {"meeting_id": meeting_id,
                                                                                "participant_count": meeting_info["participant_count"],
-                                                                               "moderator_count": meeting_info["moderator_count"]
+                                                                               "moderator_count": meeting_info["moderator_count"],
+                                                                               "users": '<<BR>>'.join(users_in_meeting),
                                                                                }
     
             if not attendee_password.strip() or not moderator_password.strip():