Commit 322c0b21 authored by Arnaud Fontaine's avatar Arnaud Fontaine

'message_property_not_set' for Property Existence Constraint is

deprecated since r41787. In order to keep backward-compatibility, skip
this attribute when migrating from filesystem to ZODB Property Sheets


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43283 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3fed4498
......@@ -88,6 +88,17 @@ class PropertyExistenceConstraint(ConstraintMixin):
_message_id_tuple = ('message_no_such_property',)
@staticmethod
def _preConvertBaseFromFilesystemDefinition(filesystem_definition_dict):
"""
Remove 'message_property_not_set' which used to be defined in
filesystem Property Existence constraint but were useless, so
remove it before converting the constraint for backward
compatibility
"""
filesystem_definition_dict.pop('message_property_not_set', None)
return {}
@staticmethod
def _convertFromFilesystemDefinition(**property_dict):
"""
......
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