hooks/syncschema.py
changeset 3659 993997b4b41d
parent 3589 a5432f99f2d9
child 3720 5376aaadd16b
--- a/hooks/syncschema.py	Tue Oct 13 16:00:09 2009 +0200
+++ b/hooks/syncschema.py	Tue Oct 13 18:20:05 2009 +0200
@@ -356,11 +356,11 @@
                            table, column, ex)
         # final relations are not infered, propagate
         try:
-            eschema = self.schema.eschema(rdef.subject)
+            eschema = self._cw.vreg.schema.eschema(rdef.subject)
         except KeyError:
             return # entity type currently being added
         # propagate attribute to children classes
-        rschema = self.schema.rschema(rdef.name)
+        rschema = self._cw.vreg.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