--- a/server/checkintegrity.py Thu May 14 10:24:56 2009 +0200
+++ b/server/checkintegrity.py Thu May 14 11:38:40 2009 +0200
@@ -61,7 +61,7 @@
yield container
else:
yield eschema
-
+
def reindex_entities(schema, session):
"""reindex all entities in the repository"""
# deactivate modification_date hook since we don't want them
@@ -103,7 +103,7 @@
# restore Entity.check
Entity.check = _check
-
+
def check_schema(schema, session, eids, fix=1):
"""check serialized schema"""
print 'Checking serialized schema'
@@ -122,7 +122,7 @@
count, cstrname, en, rn)
-
+
def check_text_index(schema, session, eids, fix=1):
"""check all entities registered in the text index"""
print 'Checking text index'
@@ -172,8 +172,8 @@
print >> sys.stderr, ' [FIXED]'
else:
print >> sys.stderr
-
-
+
+
def bad_related_msg(rtype, target, eid, fix):
msg = ' A relation %s with %s eid %s exists but no such entity in sources'
print >> sys.stderr, msg % (rtype, target, eid),
@@ -181,8 +181,8 @@
print >> sys.stderr, ' [FIXED]'
else:
print >> sys.stderr
-
-
+
+
def check_relations(schema, session, eids, fix=1):
"""check all relations registered in the repo system table"""
print 'Checking relations'