コード例 #1
0
ファイル: util.py プロジェクト: vltt-iarc/indico-plugins-cern
def has_vc_rooms(event):
    """
    Check whether the event or any of its contributions and sessions has some
    vc room created.
    """
    return any(
        VCRoomEventAssociation.find_for_event(event, include_hidden=True))
コード例 #2
0
ファイル: util.py プロジェクト: vltt-iarc/indico-plugins-cern
def has_vc_rooms_attached_to_capable(event):
    """Check whether the event or any of its contributions and sessions has some
    vc room created and those are linked to a vc capable room.
    """
    return any(vc for vc in VCRoomEventAssociation.find_for_event(
        event, include_hidden=True) if vc.link_object.room is not None
               and vc.link_object.room in get_vc_capable_rooms())
コード例 #3
0
ファイル: clone.py プロジェクト: wasm-network/indico
 def is_available(self):
     return VCRoomEventAssociation.find_for_event(self.old_event, include_hidden=True).has_rows()
コード例 #4
0
 def _has_content(self, event):
     return VCRoomEventAssociation.find_for_event(
         event, include_hidden=True).has_rows()
コード例 #5
0
 def is_available(self):
     return bool(VCRoomEventAssociation.find_for_event(self.old_event, include_hidden=True).count())