Commit 95d2f1e8 authored by Jérome Perrin's avatar Jérome Perrin

ProxyField: fix 'cannot find a template field' error message

XXX wrong ! this is a regression, somewhere in base class __repr__
changed recently. We use to have:

   ipdb> repr(self)
   '<ProxyField at /erp5/portal_skins/erp5_ingestion_test/erp5_web_content_layout_test/applicable_layout>'
   ipdb> str(self)
   '<ProxyField at applicable_layout>'
parent 8ef4c8e2
......@@ -546,7 +546,7 @@ class ProxyField(ZMIField):
else:
proxied_field = self.getTemplateField()
if proxied_field is None:
raise AttributeError('The proxy field %r cannot find a template field' % self)
raise AttributeError('The proxy field %s cannot find a template field' % self)
if proxied_field.__class__ == ProxyField:
return proxied_field.get_recursive_tales(id)
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment