server/checkintegrity.py
changeset 9492 c7fc56eecd1a
parent 9171 be9596750678
child 9543 39f981482e34
equal deleted inserted replaced
9484:31f070752462 9492:c7fc56eecd1a
    65     result = sqlcursor.fetchall()
    65     result = sqlcursor.fetchall()
    66     if len(result) == 0:
    66     if len(result) == 0:
    67         eids[eid] = False
    67         eids[eid] = False
    68         return False
    68         return False
    69     elif len(result) > 1:
    69     elif len(result) > 1:
    70         msg = ('  More than one entity with eid %s exists in source !\n'
    70         msg = ('  More than one entity with eid %s exists in source!\n'
    71                '  WARNING : Unable to fix this, do it yourself !\n')
    71                '  WARNING : Unable to fix this, do it yourself!\n')
    72         sys.stderr.write(msg % eid)
    72         sys.stderr.write(msg % eid)
    73     eids[eid] = True
    73     eids[eid] = True
    74     return True
    74     return True
    75 
    75 
    76 # XXX move to yams?
    76 # XXX move to yams?