--- a/server/checkintegrity.py Fri Jul 22 08:34:38 2011 +0200
+++ b/server/checkintegrity.py Fri Jul 22 15:41:17 2011 +0200
@@ -283,7 +283,7 @@
rql = 'Any X WHERE NOT Y %s X, X is %s' % (rschema, etype)
for entity in session.execute(rql).entities():
print >> sys.stderr, '%s #%s is missing mandatory %s relation %s' % (
- entity.__regid__, entity.eid, role, rschema)
+ entity.__regid__, entity.eid, role, rschema),
if fix:
#if entity.cw_describe()['source']['uri'] == 'system': XXX
entity.cw_delete()
@@ -304,7 +304,7 @@
rschema, rdef.subject)
for entity in session.execute(rql).entities():
print >> sys.stderr, '%s #%s is missing mandatory attribute %s' % (
- entity.__regid__, entity.eid, rschema)
+ entity.__regid__, entity.eid, rschema),
if fix:
entity.cw_delete()
notify_fixed(fix)