Commit 1996a383 authored by Nicolas Delaby's avatar Nicolas Delaby

remove duplicated code

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28113 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 375a1bc0
...@@ -1889,9 +1889,6 @@ def createDefaultAccessors(property_holder, id, prop = None, ...@@ -1889,9 +1889,6 @@ def createDefaultAccessors(property_holder, id, prop = None,
if not hasattr(property_holder, tester_name) or prop.get('override', 0): if not hasattr(property_holder, tester_name) or prop.get('override', 0):
property_holder.registerAccessor(setter_name, id, Content.Tester, accessor_args) property_holder.registerAccessor(setter_name, id, Content.Tester, accessor_args)
property_holder.declareProtected(read_permission, tester_name) property_holder.declareProtected(read_permission, tester_name)
if not hasattr(property_holder, tester_name) or prop.get('override', 0):
property_holder.registerAccessor(setter_name, id, Content.Tester, accessor_args)
property_holder.declareProtected(read_permission, tester_name)
else: else:
accessor_args = (prop['type'], prop.get('storage_id')) accessor_args = (prop['type'], prop.get('storage_id'))
tester_name = 'has' + UpperCase(id) tester_name = 'has' + UpperCase(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