# HG changeset patch # User Sylvain Thénault # Date 1267020437 -3600 # Node ID 4aaf87e7f79ee717cd905dfe2480df7d44751307 # Parent c19366a12281755648e443af4fe7a507f1fbab1e 3.6 api update diff -r c19366a12281 -r 4aaf87e7f79e server/migractions.py --- a/server/migractions.py Wed Feb 24 15:00:37 2010 +0100 +++ b/server/migractions.py Wed Feb 24 15:07:17 2010 +0100 @@ -973,7 +973,7 @@ you usually want to use sync_schema_props_perms instead. """ oldvalue = None - for constr in self.repo.schema.eschema(etype).constraints(rtype): + for constr in self.repo.schema.eschema(etype).rdef(rtype).constraints: if isinstance(constr, SizeConstraint): oldvalue = constr.max if oldvalue == size: