changeset 600:43461463758f

bbb: parser shows now also current number of participants and their state
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 14 Jun 2012 10:19:11 +0200
parents 31ef7dc6168a
children 2aa75cf87a0d
files data/plugin/parser/bbb_create.py
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/bbb_create.py	Thu Jun 14 09:38:07 2012 +0200
+++ b/data/plugin/parser/bbb_create.py	Thu Jun 14 10:19:11 2012 +0200
@@ -67,6 +67,16 @@
         meeting = Meeting(bbb_settings.BBB_API_URL, bbb_settings.SALT)
         #XXX meeting.is_running is only True if someone had joined in, so we use meeting_info instead
         meeting_info = meeting.meeting_info(meeting_id, moderator_password)
+       
+        meeting_data = """|| '''Meeting ID''' || '''Participation Count''' || '''Moderator Count'''||
+|| %(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,
+                                                                           "participant_count": meeting_info["participant_count"],
+                                                                           "moderator_count": meeting_info["moderator_count"]
+                                                                           }
 
         if not attendee_password.strip() or not moderator_password.strip():
             wiki_parser = wikiutil.importPlugin(self.request.cfg, "parser", "text_moin_wiki", None)
@@ -109,11 +119,16 @@
         raw = u"""
 %(msg)s
 
+Current participants and state of users in this meeting. 
+
+%(meeting_data)s
+
 {{{#!wiki dotted
 %(actions)s
 }}}
 
 """ % {"msg": msg,
+       "meeting_data": meeting_data,
        "actions": '\n'.join(actions)
       }