Commit de97d3e6 authored by Rafael Monnerat's avatar Rafael Monnerat

Added TypeError in exceptions. This prevent make the Proxy field uneditable...

Added TypeError in exceptions. This prevent make the Proxy field uneditable when you define wrong tales by mistake for proxy form id or proxy field id.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22687 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 062c8d9d
...@@ -422,7 +422,7 @@ class ProxyField(ZMIField): ...@@ -422,7 +422,7 @@ class ProxyField(ZMIField):
proxy_form = getattr(object, self.get_value('form_id')) proxy_form = getattr(object, self.get_value('form_id'))
proxy_field = aq_base(getattr(proxy_form, self.get_value('field_id'))) proxy_field = aq_base(getattr(proxy_form, self.get_value('field_id')))
proxy_field = proxy_field.__of__(form) proxy_field = proxy_field.__of__(form)
except AttributeError: except AttributeError, TypeError:
LOG('ProxyField', WARNING, LOG('ProxyField', WARNING,
'Could not get a field from a proxy field %s in %s' % \ 'Could not get a field from a proxy field %s in %s' % \
(self.id, object.id)) (self.id, object.id))
......
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