コード例 #1
0
def _delete_extension_type(exten, extension_type, typeval):
    try:
        if extension_type == 'user':
            user_helper.delete_user(int(typeval))
        elif extension_type == 'queue':
            queue_helper.delete_queues_with_number(exten)
        elif extension_type == 'group':
            group_helper.delete_groups_with_number(exten)
        elif extension_type == 'incall':
            incall_helper.delete_incalls_with_did(exten)
        elif extension_type == 'meetme':
            meetme_helper.delete_meetme_with_confno(exten)
        elif extension_type == 'outcall':
            dialpattern_helper.delete((typeval))
    except ElementDeletionError as e:
        print "I tried deleting a type %s typeval %s but it didn't work." % (extension_type, typeval)
        print e
コード例 #2
0
def _delete_extension_type(exten, extension_type, typeval):
    try:
        if extension_type == 'user':
            user_helper.delete_user(int(typeval))
        elif extension_type == 'queue':
            queue_helper.delete_queues_with_number(exten)
        elif extension_type == 'group':
            group_helper.delete_groups_with_number(exten)
        elif extension_type == 'incall':
            incall_helper.delete_incalls_with_did(exten)
        elif extension_type == 'meetme':
            meetme_helper.delete_meetme_with_confno(exten)
        elif extension_type == 'outcall':
            dialpattern_helper.delete((typeval))
    except ElementDeletionError as e:
        print "I tried deleting a type %s typeval %s but it didn't work." % (
            extension_type, typeval)
        print e
コード例 #3
0
ファイル: queue_steps.py プロジェクト: jaunis/xivo-acceptance
def given_there_is_no_queue_with_number(step, queue_number):
    queue_helper.delete_queues_with_number(queue_number)
コード例 #4
0
ファイル: queue_steps.py プロジェクト: jaunis/xivo-acceptance
def given_there_is_no_queue_with_number(step, queue_number):
    queue_helper.delete_queues_with_number(queue_number)