# HG changeset patch # User Sylvain Thénault # Date 1250527036 -7200 # Node ID 57ff198060266e3e4d2ba10948decb059c4d5ac4 # Parent d7f0646c65f7238d133b4a3d5993ac430838f45e fix name error diff -r d7f0646c65f7 -r 57ff19806026 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)