diff --git a/product/ERP5Type/Constraint/PropertyTypeValidity.py b/product/ERP5Type/Constraint/PropertyTypeValidity.py index ad068ecbc96c4c0fb44863edf8e741b44e86525f..a9a1df0ba7b9a539f49e0ba3b944822912ccc687 100755 --- a/product/ERP5Type/Constraint/PropertyTypeValidity.py +++ b/product/ERP5Type/Constraint/PropertyTypeValidity.py @@ -46,6 +46,7 @@ class PropertyTypeValidity(Constraint): 'boolean': (type(1), ), 'float': (type(1.0), ), 'long': (type(1L), ), + 'tales': (type('string:3'), ), 'lines': (type([]), type(())), 'tokens': (type([]), type(())), 'selection': (type([]), type(())), @@ -100,9 +101,7 @@ class PropertyTypeValidity(Constraint): wrong_type = 0 error_message = "Attribute %s is defined with unknown type %s" % \ (property_id, property_type) - errors += [(object.getRelativeUrl(), - 'PropertyTypeValidity inconsistency', - 100, error_message)] + errors.append(self._generateError(object, error_message)) if wrong_type: # Type is wrong, so, raise constraint error error_message = \