From d9c2c7ed31c84c07347878740e01c95667746bdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 10 Nov 2005 15:41:45 +0000 Subject: [PATCH] Provide a description for type validity failures git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4303 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product/ERP5Type/Utils.py b/product/ERP5Type/Utils.py index 7dc0d25d57..fee20d3135 100755 --- a/product/ERP5Type/Utils.py +++ b/product/ERP5Type/Utils.py @@ -1113,7 +1113,8 @@ def setDefaultProperties(property_holder, object=None): # Unnecessary to create these accessors more than once. base_category_dict.clear() # Create the constraint method list - always check type - property_holder.constraints = [Constraint.PropertyTypeValidity(id='type_check')] + property_holder.constraints = [ Constraint.PropertyTypeValidity(id='type_check', + description="Type Validity Check Error") ] for const in constraint_list: createConstraintList(property_holder, constraint_definition=const) # ERP5 _properties and Zope _properties are somehow different -- 2.30.9