Ejemplo n.º 1
0
 def _extend_top_menu(self, sender, **kwargs):
     if not session.user or not is_vc_support(session.user):
         return
     return TopMenuItem('services-cern-vc-assistance',
                        _('Videoconference assistance'),
                        url_for_plugin('vc_assistance.request_list'),
                        section='services')
Ejemplo n.º 2
0
 def _extend_top_menu(self, sender, **kwargs):
     if not session.user or not is_av_manager(session.user):
         return
     return TopMenuItem('services-cern-audiovisual',
                        _('Webcast/Recording'),
                        url_for_plugin('audiovisual.request_list'),
                        section='services')
Ejemplo n.º 3
0
    def _extend_services_menu(self, reservation, **kwargs):
        if not session.user or not is_room_assistance_support(session.user):
            return

        return TopMenuItem('services-cern-room-assistance',
                           _('Room assistance'),
                           url_for_plugin('room_assistance.request_list'),
                           section='services')