Commit 5a0c3260 authored by Jérome Perrin's avatar Jérome Perrin

typo fixs, thanks Mikolaj Antoszkiewicz


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21011 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 387f4c55
......@@ -44,9 +44,9 @@ class PropertyExistence(Constraint):
},
"""
_message_id_list = ['message_no_such_propery',
_message_id_list = ['message_no_such_property',
'message_property_not_set']
message_no_such_propery = "Property existence error for property "\
message_no_such_property = "Property existence error for property "\
"${property_id}, this document has no such property"
message_property_not_set = "Property existence error for property "\
"${property_id}, this property is not defined"
......@@ -64,7 +64,7 @@ class PropertyExistence(Constraint):
# Check existence of property
mapping = dict(property_id=property_id)
if not obj.hasProperty(property_id):
error_message_id = "message_no_such_propery"
error_message_id = "message_no_such_property"
elif obj.getProperty(property_id) is None:
# If value is '', attribute is considered a defined
# XXX is this the default API ?
......
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