fix name error
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 17 Aug 2009 18:37:16 +0200
changeset 2883 57ff19806026
parent 2882 d7f0646c65f7
child 2884 7fcfb27ab975
fix name error
hooks/syncschema.py
--- a/hooks/syncschema.py	Mon Aug 17 18:35:46 2009 +0200
+++ b/hooks/syncschema.py	Mon Aug 17 18:37:16 2009 +0200
@@ -600,7 +600,7 @@
         # when the relation is added in the same transaction, the constraint
         # object is created by the operation adding the attribute or relation,
         # so there is nothing to do here
-        if session.added_in_transaction(rdef.eid):
+        if self.session.added_in_transaction(rdef.eid):
             self.cancelled = True
             return
         subjtype, rtype, objtype = self.session.schema.schema_by_eid(rdef.eid)