def test_is_a_meetme(self): meetme = self._insert_meetme(1, 'red', '9000') result = meetme_dao.is_a_meetme('9005') self.assertEqual(result, False) result = meetme_dao.is_a_meetme(meetme.confno) self.assertEqual(result, True)
def parse_join(event): number = event[CONF_ROOM_NUMBER] if meetme_dao.is_a_meetme(number): context.get('meetme_service_manager').join(event[CHANNEL], number, int(event[USERNUM]), event[CIDNAME], event[CIDNUMBER])
def parse_meetmelist(event): number = event['Conference'] if meetme_dao.is_a_meetme(number): context.get('meetme_service_manager').refresh(event[CHANNEL], number, int(event['UserNumber']), event['CallerIDName'], event['CallerIDNum'], event['Muted'] == YES)
def parse_meetmemute(event): number = event['Meetme'] if meetme_dao.is_a_meetme(number): muting = event['Status'] == 'on' if muting: context.get('meetme_service_manager').mute(number, int(event['Usernum'])) else: context.get('meetme_service_manager').unmute(number, int(event['Usernum']))
def parse_join(event): number = event[CONF_ROOM_NUMBER] if meetme_dao.is_a_meetme(number): context.get('meetme_service_manager').join( event[CHANNEL], number, int(event[USERNUM]), event[CIDNAME], event[CIDNUMBER])
def parse_meetmemute(event): number = event['Meetme'] if meetme_dao.is_a_meetme(number): muting = event['Status'] == 'on' if muting: context.get('meetme_service_manager').mute(number, int(event['Usernum'])) else: context.get('meetme_service_manager').unmute( number, int(event['Usernum']))
def parse_meetmelist(event): number = event['Conference'] if meetme_dao.is_a_meetme(number): context.get('meetme_service_manager').refresh( event[CHANNEL], number, int(event['UserNumber']), event['CallerIDName'], event['CallerIDNum'], event['Muted'] == YES)
def parse_meetmemute(event): with session_scope(): number = event['Meetme'] is_a_meetme = meetme_dao.is_a_meetme(number) if is_a_meetme: muting = event['Status'] == 'on' if muting: context.get('meetme_service_manager').mute(number, int(event[USER])) else: context.get('meetme_service_manager').unmute(number, int(event[USER]))
def parse_join(event): with session_scope(): number = event[CONF_ROOM_NUMBER] is_a_meetme = meetme_dao.is_a_meetme(number) if is_a_meetme: context.get('meetme_service_manager').join( event[CHANNEL], number, int(event[USER]), event[CIDNAME], event[CIDNUMBER])
def parse_leave(event): number = event[CONF_ROOM_NUMBER] if meetme_dao.is_a_meetme(number): context.get('meetme_service_manager').leave(number, int(event[USERNUM]))
def parse_leave(event): with session_scope(): number = event[CONF_ROOM_NUMBER] is_a_meetme = meetme_dao.is_a_meetme(number) if is_a_meetme: context.get('meetme_service_manager').leave(number, int(event[USER]))