[schema sync] fix crash when bad inlinment detected, inlined is not in the locals stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 28 Jan 2011 11:08:31 +0100
branchstable
changeset 6912 b61b844f2dad
parent 6911 75849076fd6c
child 6913 ab85124dc0eb
[schema sync] fix crash when bad inlinment detected, inlined is not in the locals
entities/schemaobjs.py
--- a/entities/schemaobjs.py	Thu Jan 27 18:46:47 2011 +0100
+++ b/entities/schemaobjs.py	Fri Jan 28 11:08:31 2011 +0100
@@ -139,7 +139,7 @@
                 rtype = self.name
                 stype = rdef.stype
                 otype = rdef.otype
-                msg = self._cw._("can't set inlined=%(inlined)s, "
+                msg = self._cw._("can't set inlined=True, "
                                  "%(stype)s %(rtype)s %(otype)s "
                                  "has cardinality=%(card)s")
                 raise ValidationError(self.eid, {qname: msg % locals()})