changeset 605:c378af5f401b

bbb: parser shows GUEST_URL if defined in bbb_settings for a started meeting. This can be used to invite guests.
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 15 Jun 2012 11:02:34 +0200
parents cee4ce4ee07b
children 7909cd319ce8
files data/plugin/parser/bbb_create.py
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/bbb_create.py	Fri Jun 15 10:40:05 2012 +0200
+++ b/data/plugin/parser/bbb_create.py	Fri Jun 15 11:02:34 2012 +0200
@@ -86,6 +86,7 @@
 
         actions = []
         actions_text = ""
+        guest_info_text = ""
         msg = "\n\n/!\ A Moderator has to start the meeting before someone else can join in!"
         if request.user.valid and request.user.may.read(pagename):
             if meeting_info:
@@ -109,6 +110,10 @@
                     actions.append(u' . <<Action(submit_bbb_close_meeting, text="Close this meeting", meeting_id=%(meeting_id)s, password=%(password)s)>>' % {"meeting_id": meeting_id,
                                                                                                                                                   "password": moderator_password
                                                                                                                                               })
+                    
+                    if "GUEST_URL" in bbb_settings.__dict__:
+                        guest_info_text = "(!) External users can get access by using this URL: %s" % bbb_settings.GUEST_URL
+
 
             if not meeting_info and request.user.may.delete(pagename) and username == responsible:
                 # users with before rights should know to use commands of the menu
@@ -120,6 +125,7 @@
 %(actions)s
 }}}
 """ % {"actions": '\n'.join(actions)}
+           
 
         raw = u"""
 %(msg)s
@@ -128,11 +134,13 @@
 
 %(meeting_data)s
 
+%(actions_text)s
 
-%(actions_text)s
+%(guest_info_text)s
 """ % {"msg": msg,
        "meeting_data": meeting_data,
        "actions_text": actions_text,
+       "guest_info_text": guest_info_text,
       }