From b462f1491de7bcf3c5f10243128dc4ff7bd5528d Mon Sep 17 00:00:00 2001 From: Jacques Dafflon Date: Mon, 30 Mar 2015 17:26:52 +0200 Subject: [PATCH] vc_dummy: add attach form --- vc_dummy/indico_vc_dummy/plugin.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vc_dummy/indico_vc_dummy/plugin.py b/vc_dummy/indico_vc_dummy/plugin.py index 37b355f..3600a87 100644 --- a/vc_dummy/indico_vc_dummy/plugin.py +++ b/vc_dummy/indico_vc_dummy/plugin.py @@ -21,7 +21,7 @@ from wtforms.fields.core import BooleanField from indico.core.plugins import IndicoPlugin, url_for_plugin, IndicoPluginBlueprint from indico.modules.vc import VCPluginMixin -from indico.modules.vc.forms import VCRoomFormBase +from indico.modules.vc.forms import VCRoomFormBase, VCRoomAttachFormBase from indico.web.forms.widgets import SwitchWidget @@ -31,6 +31,12 @@ class VCRoomForm(VCRoomFormBase): description="Yes. It doesn't make any sense.") +class VCRoomAttachForm(VCRoomAttachFormBase): + show_phone_numbers = BooleanField('What is your favorite color?', + widget=SwitchWidget(), + description="Yes. It doesn't make any sense.") + + class DummyPlugin(VCPluginMixin, IndicoPlugin): """Dummy @@ -38,6 +44,7 @@ class DummyPlugin(VCPluginMixin, IndicoPlugin): """ configurable = True vc_room_form = VCRoomForm + vc_room_attach_form = VCRoomAttachForm friendly_name = "Dummy" @property