Ejemplo n.º 1
0
def del_FingerPrint(pin):
    '''
    删除人员指纹
    '''
    if DEVELOP_MODEL:print 'del_FingerPrint...'
    e=Employee(pin)
    try:
        e=e.get()
    except ObjectDoesNotExist:
        return u'人员不存在'
    try:
        FingerPrint.deletes(e.getoo(),e.PIN)
        return 0
    except:
        return u'操作失败'
Ejemplo n.º 2
0
def del_Face(pin):
    '''
    删除人员面部
    '''
    if DEVELOP_MODEL:print 'del_Face...'
    e=Employee(pin)
    try:
        e=e.get()
    except ObjectDoesNotExist:
        return u'人员不存在'
    try:
        Face.deletes(e.getoo(),e.PIN)
        return 0
    except:
        import traceback; traceback.print_exc()
        return u'操作失败'