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))
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())
def is_available(self): return VCRoomEventAssociation.find_for_event(self.old_event, include_hidden=True).has_rows()
def _has_content(self, event): return VCRoomEventAssociation.find_for_event( event, include_hidden=True).has_rows()
def is_available(self): return bool(VCRoomEventAssociation.find_for_event(self.old_event, include_hidden=True).count())