server/checkintegrity.py
branchstable
changeset 3689 deb13e88e037
parent 3374 d5bd1b659ce8
child 3720 5376aaadd16b
child 4212 ab6573088b4a
--- a/server/checkintegrity.py	Thu Oct 15 18:43:04 2009 +0200
+++ b/server/checkintegrity.py	Thu Oct 15 20:29:21 2009 +0200
@@ -87,7 +87,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:
@@ -165,7 +165,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'
@@ -197,7 +197,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():