예제 #1
0
파일: services.py 프로젝트: jaunis/xivo-dao
def _delete_incall_association(line_extension):
    incall = incall_dao.find_by_extension_id(line_extension.extension_id)
    incall_dao.delete(incall)
    extension_dao.dissociate_extension(line_extension.extension_id)
예제 #2
0
    def test_dissociate_extension(self):
        extension_row = self.add_extension(type='user', typeval='1234')

        extension_dao.dissociate_extension(extension_row.id)

        self.assert_extension_not_associated(extension_row.id)
예제 #3
0
파일: services.py 프로젝트: jaunis/xivo-dao
def _delete_incall_association(line_extension):
    incall = incall_dao.find_by_extension_id(line_extension.extension_id)
    incall_dao.delete(incall)
    extension_dao.dissociate_extension(line_extension.extension_id)
예제 #4
0
파일: services.py 프로젝트: jaunis/xivo-dao
def remove_exten_and_context(extension):
    line_dao.dissociate_extension(extension)
    extension_dao.dissociate_extension(extension.id)
예제 #5
0
    def test_dissociate_extension(self):
        extension_row = self.add_extension(type='user', typeval='1234')

        extension_dao.dissociate_extension(extension_row.id)

        self.assert_extension_not_associated(extension_row.id)
예제 #6
0
def remove_exten_and_context(extension):
    line_dao.dissociate_extension(extension)
    extension_dao.dissociate_extension(extension.id)