def _extend_event_management_menu(sender, event, **kwargs): if not get_vc_plugins(): return if not event.can_manage(session.user): return return SideMenuItem('videoconference', _('Videoconference'), url_for('vc.manage_vc_rooms', event), section='services')
def _process(self): action = request.args.get('vc_room_action', '.manage_vc_rooms_create') attach = request.args.get('attach', '') return jsonify_template('vc/manage_event_select.html', event=self.event, vc_room_action=action, plugins=get_vc_plugins().values(), attach=attach)
def _process(self): room_event_assocs = VCRoomEventAssociation.find_for_event( self.event, include_hidden=True, include_deleted=True).all() event_vc_rooms = [ event_vc_room for event_vc_room in room_event_assocs if event_vc_room.vc_room.plugin ] return WPVCManageEvent.render_template( 'manage_event.html', self.event, event_vc_rooms=event_vc_rooms, plugins=get_vc_plugins().values())
def _process(self): event_vc_rooms = VCRoomEventAssociation.find_for_event( self.event).all() vc_plugins_available = bool(get_vc_plugins()) linked_to = defaultdict(lambda: defaultdict(list)) for event_vc_room in event_vc_rooms: if event_vc_room.vc_room.plugin: linked_to[event_vc_room.link_type.name][ event_vc_room.link_object].append(event_vc_room) return WPVCEventPage.render_template( 'event_vc.html', self.event, event_vc_rooms=event_vc_rooms, linked_to=linked_to, vc_plugins_available=vc_plugins_available)
def plugin(self): from fossir.modules.vc.util import get_vc_plugins return get_vc_plugins().get(self.type)
def _visible(event): return bool(get_vc_plugins()) and VCRoomEventAssociation.find_for_event(event).has_rows()
def _process_args(self): RHVCManageEventBase._process_args(self) try: self.plugin = get_vc_plugins()[request.view_args['service']] except KeyError: raise NotFound