Commit 0949fdb8 authored by Nicolas Dumazet's avatar Nicolas Dumazet

Old code. This only mattered with old way to generate accessors:

now a property_holder/accessor_holder only holds one kind of accessors, for one
portal type, or for one property sheet


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43204 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 473b6a6a
......@@ -1455,17 +1455,6 @@ def setDefaultProperties(property_holder, object=None, portal=None):
# a list of declarative consistency definitions (ie. constraints)
# Do not consider superclass _constraints definition
constraint_list = property_holder.__dict__.get('_constraints', [])
for base in property_holder.property_sheets:
for prop in base._properties:
# Copy the dict so that Expression objects are not overwritten.
prop_list.append(prop.copy())
if hasattr(base, '_categories'):
if isinstance(base._categories, (tuple, list)):
cat_list += base._categories
else:
cat_list.append(base._categories)
if hasattr(base, '_constraints'):
constraint_list += base._constraints
# Evaluate TALES expressions.
for prop in prop_list:
......
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