From de97d3e6cde430a326260892638d7d6108fbdc51 Mon Sep 17 00:00:00 2001 From: Rafael Monnerat <rafael@nexedi.com> Date: Mon, 28 Jul 2008 13:41:25 +0000 Subject: [PATCH] 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 --- product/ERP5Form/ProxyField.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Form/ProxyField.py b/product/ERP5Form/ProxyField.py index d2b18b0c8d..691e1991d2 100644 --- a/product/ERP5Form/ProxyField.py +++ b/product/ERP5Form/ProxyField.py @@ -422,7 +422,7 @@ class ProxyField(ZMIField): proxy_form = getattr(object, self.get_value('form_id')) proxy_field = aq_base(getattr(proxy_form, self.get_value('field_id'))) proxy_field = proxy_field.__of__(form) - except AttributeError: + except AttributeError, TypeError: LOG('ProxyField', WARNING, 'Could not get a field from a proxy field %s in %s' % \ (self.id, object.id)) -- 2.30.9