[Erp5-report] r43204 nicolas.dumazet - /erp5/trunk/products/ERP5Type/Utils.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Feb 9 05:18:16 CET 2011
Author: nicolas.dumazet
Date: Wed Feb 9 05:18:16 2011
New Revision: 43204
URL: http://svn.erp5.org?rev=43204&view=rev
Log:
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
Modified:
erp5/trunk/products/ERP5Type/Utils.py
Modified: erp5/trunk/products/ERP5Type/Utils.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Utils.py?rev=43204&r1=43203&r2=43204&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Utils.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Utils.py [utf8] Wed Feb 9 05:18:16 2011
@@ -1455,17 +1455,6 @@ def setDefaultProperties(property_holder
# 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:
More information about the Erp5-report
mailing list