# HG changeset patch # User Sylvain Thénault # Date 1268930168 -3600 # Node ID f4dce73da26bc48de94f5eebfeccc5d578479c82 # Parent 5774491a1421727de21d24ff26b277292f1150f4 [schema sync] don't try to synchronize infered relation defs, fixing a name error on the way diff -r 5774491a1421 -r f4dce73da26b server/migractions.py --- a/server/migractions.py Thu Mar 18 17:33:54 2010 +0100 +++ b/server/migractions.py Thu Mar 18 17:36:08 2010 +0100 @@ -476,13 +476,15 @@ self._synchronized.add((subjtype, rschema, objtype)) if rschema.symmetric: self._synchronized.add((objtype, rschema, subjtype)) + rdef = rschema.rdef(subjtype, objtype) + if rdef.infered: + return # don't try to synchronize infered relation defs confirm = self.verbosity >= 2 if syncprops: # properties self.rqlexecall(ss.updaterdef2rql(rschema, subjtype, objtype), ask_confirm=confirm) # constraints - rdef = rschema.rdef(subjtype, objtype) repordef = reporschema.rdef(subjtype, objtype) newconstraints = list(rdef.constraints) # 1. remove old constraints and update constraints of the same type