server/ssplanner.py
branchstable
changeset 3689 deb13e88e037
parent 3437 a30b5b5138a4
child 3720 5376aaadd16b
child 4212 ab6573088b4a
--- a/server/ssplanner.py	Thu Oct 15 18:43:04 2009 +0200
+++ b/server/ssplanner.py	Thu Oct 15 20:29:21 2009 +0200
@@ -75,8 +75,8 @@
                 if reverse:
                     rdefs[i] = rtype, RelationsStep.REVERSE_RELATION
                 else:
-                    rschema = eschema.subject_relation(rtype)
-                    if rschema.is_final() or rschema.inlined:
+                    rschema = eschema.subjrels[rtype]
+                    if rschema.final or rschema.inlined:
                         rdefs[i] = rtype, RelationsStep.FINAL
                     else:
                         rdefs[i] = rtype, RelationsStep.RELATION
@@ -147,7 +147,7 @@
                 selected_index[rhs.as_string('utf-8')] = index
                 index += 1
             rschema = getrschema(relation.r_type)
-            if rschema.is_final() or rschema.inlined:
+            if rschema.final or rschema.inlined:
                 attrrelations.append(relation)
             else:
                 relations.append(relation)