[Erp5-report] r44986 kazuhiko - /erp5/trunk/products/ERP5/Document/TransformedResource.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Apr 1 13:35:59 CEST 2011


Author: kazuhiko
Date: Fri Apr  1 13:35:59 2011
New Revision: 44986

URL: http://svn.erp5.org?rev=44986&view=rev
Log:
explicitly cast to list before calling append(), because ERP5Site.getPortalXxxList() (that can be called inside) returns tuple for now.

Modified:
    erp5/trunk/products/ERP5/Document/TransformedResource.py

Modified: erp5/trunk/products/ERP5/Document/TransformedResource.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/TransformedResource.py?rev=44986&r1=44985&r2=44986&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TransformedResource.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/TransformedResource.py [utf8] Fri Apr  1 13:35:59 2011
@@ -82,10 +82,10 @@ class TransformedResource(AmountGenerato
       return result
 
     def getMappedValueBaseCategoryList(self):
-      result = self._baseGetMappedValueBaseCategoryList()
+      result = list(self._baseGetMappedValueBaseCategoryList())
       if not result:
         if not self.hasCellContent(base_id='variation'):
-          result = self.getVariationRangeBaseCategoryList() # The current resource variation
+          result = list(self.getVariationRangeBaseCategoryList()) # The current resource variation
         if 'trade_phase' not in result:
           result.append('trade_phase')
       return result



More information about the Erp5-report mailing list