server/schemahooks.py
branchstable
changeset 3550 f9bdcfeb12ee
parent 3546 f0aecddf367e
child 3689 deb13e88e037
--- a/server/schemahooks.py	Fri Oct 02 08:57:55 2009 +0200
+++ b/server/schemahooks.py	Fri Oct 02 10:14:29 2009 +0200
@@ -351,6 +351,10 @@
             return # entity type currently being added
         # propagate attribute to children classes
         rschema = self.schema.rschema(rdef.name)
+        # if relation type has been inserted in the same transaction, its final
+        # attribute is still set to False, so we've to ensure it's False
+        rschema.final = True
+        # XXX 'infered': True/False, not clear actually
         props.update({'constraints': rdef.constraints,
                       'description': rdef.description,
                       'cardinality': rdef.cardinality,