server/checkintegrity.py
changeset 3720 5376aaadd16b
parent 3417 fb17a54b358c
parent 3689 deb13e88e037
child 4252 6c4f109c2b03
--- a/server/checkintegrity.py	Thu Oct 15 11:20:26 2009 +0200
+++ b/server/checkintegrity.py	Mon Oct 19 15:16:41 2009 +0200
@@ -83,7 +83,7 @@
     repo.do_fti = True  # ensure full-text indexation is activated
     etypes = set()
     for eschema in schema.entities():
-        if eschema.is_final():
+        if eschema.final:
             continue
         indexable_attrs = tuple(eschema.indexable_attributes()) # generator
         if not indexable_attrs:
@@ -161,7 +161,7 @@
                 print >> sys.stderr
     print 'Checking entities tables'
     for eschema in schema.entities():
-        if eschema.is_final():
+        if eschema.final:
             continue
         table = SQL_PREFIX + eschema.type
         column = SQL_PREFIX +  'eid'
@@ -193,7 +193,7 @@
     """check all relations registered in the repo system table"""
     print 'Checking relations'
     for rschema in schema.relations():
-        if rschema.is_final() or rschema in PURE_VIRTUAL_RTYPES:
+        if rschema.final or rschema in PURE_VIRTUAL_RTYPES:
             continue
         if rschema.inlined:
             for subjtype in rschema.subjects():