[c-c db-check] don't skip is/is_instance_of mandatory relation to avoid telling two opposite messages when the relation is missing. Closes #2465659 stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 30 Aug 2012 17:11:05 +0200
branchstable
changeset 8527 6151b0199bc1
parent 8526 ed0fbbf507bb
child 8528 f32c50c6b7e0
[c-c db-check] don't skip is/is_instance_of mandatory relation to avoid telling two opposite messages when the relation is missing. Closes #2465659
server/checkintegrity.py
--- a/server/checkintegrity.py	Thu Aug 23 11:19:44 2012 +0200
+++ b/server/checkintegrity.py	Thu Aug 30 17:11:05 2012 +0200
@@ -317,7 +317,7 @@
     print 'Checking mandatory relations'
     msg = '%s #%s is missing mandatory %s relation %s (autofix will delete the entity)'
     for rschema in schema.relations():
-        if rschema.final or rschema.type in PURE_VIRTUAL_RTYPES:
+        if rschema.final or rschema in PURE_VIRTUAL_RTYPES or rschema in ('is', 'is_instance_of'):
             continue
         smandatory = set()
         omandatory = set()