annotate data/plugin/action/submit_bbb_start_meeting.py @ 614:81cb72cfddac

bbb: don't crash because of wrong salt
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 15 Aug 2012 13:36:59 +0200
parents 8c908e614131
children 6d10150ff905
rev   line source
599
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
1 # -*- coding: utf-8 -*-
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
2 """
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
3 MoinMoin - Starts Meeting for bigbluebutton
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
4
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
5 @copyright: 2012 MoinMoin:ReimarBauer
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
6 @license: GNU GPL, see COPYING for details.
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
7 """
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
8 import urllib
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
9 from MoinMoin.Page import Page
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
10 # pip install bigbluebutton
606
7909cd319ce8 bbb: bug fix for parser lookup by extensions. We check now if bigbluebutton lib is installed.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 599
diff changeset
11 try:
7909cd319ce8 bbb: bug fix for parser lookup by extensions. We check now if bigbluebutton lib is installed.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 599
diff changeset
12 from bigbluebutton import Meeting_Setup
7909cd319ce8 bbb: bug fix for parser lookup by extensions. We check now if bigbluebutton lib is installed.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 599
diff changeset
13 except ImportError:
7909cd319ce8 bbb: bug fix for parser lookup by extensions. We check now if bigbluebutton lib is installed.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 599
diff changeset
14 Meeting_Setup = None
7909cd319ce8 bbb: bug fix for parser lookup by extensions. We check now if bigbluebutton lib is installed.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 599
diff changeset
15 try:
7909cd319ce8 bbb: bug fix for parser lookup by extensions. We check now if bigbluebutton lib is installed.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 599
diff changeset
16 import bbb_settings
7909cd319ce8 bbb: bug fix for parser lookup by extensions. We check now if bigbluebutton lib is installed.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 599
diff changeset
17 except ImportError:
7909cd319ce8 bbb: bug fix for parser lookup by extensions. We check now if bigbluebutton lib is installed.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 599
diff changeset
18 bbb_settings = None
599
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
19
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
20 def execute(pagename, request):
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
21 """
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
22 Lets a Moderator of a meeting start this.
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
23 It requires a bbb_admin_group defined in wikiconfig.py.
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
24 Only a user of this group is allowed to use this action.
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
25 On same directory as wikiconfig.py you need
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
26 a "bbb_settings.py" module with the SALT and the BBB_API_URL.
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
27 """
606
7909cd319ce8 bbb: bug fix for parser lookup by extensions. We check now if bigbluebutton lib is installed.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 599
diff changeset
28 if Meeting_Setup is None or bbb_settings is None:
7909cd319ce8 bbb: bug fix for parser lookup by extensions. We check now if bigbluebutton lib is installed.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 599
diff changeset
29 msg, state = ("bigbluebutton module not installed or bbb_settings missing!", "error")
7909cd319ce8 bbb: bug fix for parser lookup by extensions. We check now if bigbluebutton lib is installed.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 599
diff changeset
30 request.theme.add_msg(msg, state)
7909cd319ce8 bbb: bug fix for parser lookup by extensions. We check now if bigbluebutton lib is installed.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 599
diff changeset
31 Page(request, pagename).send_page()
7909cd319ce8 bbb: bug fix for parser lookup by extensions. We check now if bigbluebutton lib is installed.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 599
diff changeset
32 return
599
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
33
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
34 _ = request.getText
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
35 username = request.user.name
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
36 groups = request.groups
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
37 msg, state = ("Sorry you have not enough priviledges!", "error")
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
38 try:
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
39 bbb_admin_group = groups.get(request.cfg.bbb_admin_group, [])
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
40 except AttributeError:
608
8c908e614131 bbb: bug fix for sending msg and state
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 606
diff changeset
41 request.theme.add_msg(msg, state)
599
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
42 Page(request, pagename).send_page()
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
43 return
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
44
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
45 if request.user.valid and username in bbb_admin_group:
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
46 if request.args and request.args["action"] == u'submit_bbb_start_meeting':
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
47 content = request.dicts.get(pagename, {})
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
48 msg, state = ("You have not this priviledge to start this meeting!", "error")
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
49 responsible = content["responsible"]
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
50 if request.user.name != responsible:
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
51 request.theme.add_msg(msg, state)
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
52 Page(request, pagename).send_page()
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
53 return
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
54
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
55 attendee_password = content["attendee_password"]
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
56 moderator_password = content["moderator_password"]
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
57 msg, state = ("Sorry, we don't support empty passwords!", "error")
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
58 if not attendee_password.strip() or not moderator_password.strip():
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
59 request.theme.add_msg(msg, state)
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
60 Page(request, pagename).send_page()
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
61
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
62 return
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
63 meeting_id = content["meeting_id"]
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
64 meeting_name = content["meeting_name"]
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
65 recreate = True
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
66 scriptname = request.script_root
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
67 if scriptname:
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
68 scriptname = scriptname.lstrip('/') + '/'
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
69 url = "%s%s%s" % (request.host_url, scriptname, pagename.lstrip('/'))
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
70 msg, state = ("Meeting started ", "info")
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
71 try:
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
72 session = Meeting_Setup(bbb_api_url=bbb_settings.BBB_API_URL, salt=bbb_settings.SALT,
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
73 meeting_name=meeting_name, meeting_id=meeting_id,
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
74 attendee_password=attendee_password,
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
75 moderator_password=moderator_password,
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
76 logout_url=url,
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
77 )
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
78 try:
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
79 session.create_meeting()
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
80 except TypeError:
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
81 recreate = False
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
82 msg, state = ("Usually the meeting is running and you tried to change some important parameters. Stop the Meeting beforehand.", "error")
614
81cb72cfddac bbb: don't crash because of wrong salt
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 608
diff changeset
83 # XXX there is an AttributeError if the SALT is wrong.
81cb72cfddac bbb: don't crash because of wrong salt
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 608
diff changeset
84 # catching the AttributeError seems no solution for a correct SALT.
599
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
85
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
86 except KeyError:
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
87 msg, state = ("Usually not the right parameters or syntax used! Check the page content. ", "error")
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
88 recreate = False
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
89
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
90
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
91 request.theme.add_msg(msg, state)
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
92 Page(request, pagename).send_page()
31ef7dc6168a bbb: action submit_bbb_start_meeting introduced and similar code from submit_bbb_create_meeting amd bbb_create removed. Meetings have to be started by the responsible moderator before someone else can join.
Reimar Bauer <rb.proj AT googlemail DOT com>
parents:
diff changeset
93