Commit 34cfc19b authored by Arnaud Fontaine's avatar Arnaud Fontaine

Following r41787 for filesystem PropertyExistence constraint, remove

message_property_not_set



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41832 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6d986afc
...@@ -39,10 +39,6 @@ class PropertyExistenceConstraint: ...@@ -39,10 +39,6 @@ class PropertyExistenceConstraint:
'type': 'string', 'type': 'string',
'description' : 'Error message when there is no such property', 'description' : 'Error message when there is no such property',
'default': 'Property existence error for property ${property_id}, '\ 'default': 'Property existence error for property ${property_id}, '\
'this document has no such property' }, 'this document has no such property or the property '\
{ 'id': 'message_property_not_set', 'has never been set' },
'type': 'string',
'description' : 'Error message when the property is not set',
'default': 'Property existence error for property ${property_id}, '\
'this property is not defined' },
) )
...@@ -65,7 +65,7 @@ class PropertyExistenceConstraint(ConstraintMixin): ...@@ -65,7 +65,7 @@ class PropertyExistenceConstraint(ConstraintMixin):
""" """
# Check whether the property exists and has been set # Check whether the property exists and has been set
if not obj.hasProperty(property_id): if not obj.hasProperty(property_id):
return "message_property_not_set" return "message_no_such_property"
return None return None
......
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