Commit d9c2c7ed authored by Jérome Perrin's avatar Jérome Perrin

Provide a description for type validity failures


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4303 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 60c0d333
......@@ -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
......
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