--- 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)