Commit fba47432 authored by Yoshinori Okuji's avatar Yoshinori Okuji

When generating range properties, remove storage_id from the property dictionary if any.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5639 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c27279d4
......@@ -1059,6 +1059,8 @@ def setDefaultProperties(property_holder, object=None):
if prop.get('range', 0):
for value in ('min', 'max'):
range_prop = prop.copy()
if 'storage_id' in range_prop:
del range_prop['storage_id']
if range_prop.get('acquisition_accessor_id', 0):
range_prop['acquisition_accessor_id'] = '%sRange%s' % (range_prop['acquisition_accessor_id'], value.capitalize())
range_prop['alt_accessor_id'] = ('get' + convertToUpperCase(prop['id']),)
......
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