server/checkintegrity.py
changeset 9543 39f981482e34
parent 9469 032825bbacab
parent 9492 c7fc56eecd1a
child 9574 2d4c4842bd04
equal deleted inserted replaced
9520:78702b55c089 9543:39f981482e34
    53     result = sqlcursor.fetchall()
    53     result = sqlcursor.fetchall()
    54     if len(result) == 0:
    54     if len(result) == 0:
    55         eids[eid] = False
    55         eids[eid] = False
    56         return False
    56         return False
    57     elif len(result) > 1:
    57     elif len(result) > 1:
    58         msg = ('  More than one entity with eid %s exists in source !\n'
    58         msg = ('  More than one entity with eid %s exists in source!\n'
    59                '  WARNING : Unable to fix this, do it yourself !\n')
    59                '  WARNING : Unable to fix this, do it yourself!\n')
    60         sys.stderr.write(msg % eid)
    60         sys.stderr.write(msg % eid)
    61     eids[eid] = True
    61     eids[eid] = True
    62     return True
    62     return True
    63 
    63 
    64 # XXX move to yams?
    64 # XXX move to yams?