Commit 5de79e55 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Use the default _setProperty defined in ERP5Type.Base as fallback instead of

trying to call only one single accessor.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3994 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dad916af
...@@ -172,9 +172,8 @@ identify a bank account.""" ...@@ -172,9 +172,8 @@ identify a bank account."""
#except: #except:
# LOG("WARNING: ERP5", 0, 'Could not set mapped value property %s' % key) # LOG("WARNING: ERP5", 0, 'Could not set mapped value property %s' % key)
# return # return
accessor_name = 'set' + UpperCase(key)
method = getattr(self, accessor_name) return Predicate._setProperty(self, key, value, type=type, **kw)
return method(value, **kw)
# Compatibility method # Compatibility method
def getMappedValuePropertyList(self, *args): def getMappedValuePropertyList(self, *args):
......
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