[Erp5-report] r42869 nicolas.dumazet - /erp5/trunk/products/ERP5Type/dynamic/

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Feb 1 07:36:05 CET 2011


Author: nicolas.dumazet
Date: Tue Feb  1 07:36:05 2011
New Revision: 42869

URL: http://svn.erp5.org?rev=42869&view=rev
Log:
fix property accessors on processed accessors

Modified:
    erp5/trunk/products/ERP5Type/dynamic/accessor_holder.py

Modified: erp5/trunk/products/ERP5Type/dynamic/accessor_holder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/dynamic/accessor_holder.py?rev=42869&r1=42868&r2=42869&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/dynamic/accessor_holder.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/dynamic/accessor_holder.py [utf8] Tue Feb  1 07:36:05 2011
@@ -187,7 +187,12 @@ def _generatePreferenceToolAccessorHolde
         # XXX read_permission and write_permissions defined at
         # property sheet are not respected by this.
         # only properties marked as preference are used
+
+        # properties have already been 'converted' and _list is appended
+        # to list_types properties
         attribute = prop['id']
+        if attribute.endswith('_list'):
+          attribute = prop['base_id']
         attr_list = [ 'get%s' % convertToUpperCase(attribute)]
         if prop['type'] == 'boolean':
           attr_list.append('is%s' % convertToUpperCase(attribute))



More information about the Erp5-report mailing list