[Erp5-report] r32843 nicolas.dumazet - /erp5/trunk/products/ERP5Type/XMLMatrix.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Feb 19 10:49:09 CET 2010


Author: nicolas.dumazet
Date: Fri Feb 19 10:49:08 2010
New Revision: 32843

URL: http://svn.erp5.org?rev=32843&view=rev
Log:
fix testXMLMatrix

Modified:
    erp5/trunk/products/ERP5Type/XMLMatrix.py

Modified: erp5/trunk/products/ERP5Type/XMLMatrix.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/XMLMatrix.py?rev=32843&r1=32842&r2=32843&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/XMLMatrix.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/XMLMatrix.py [utf8] Fri Feb 19 10:49:08 2010
@@ -161,6 +161,8 @@
         return
 
       # Create the new index for the range given in *kw
+      # *kw practical example:
+      # kw = [ ['color/blue', 'color/red'], ['size/S', 'size/L']]
       for i, index_ids in enumerate(kw):
         temp = PersistentMapping()
         for j, my_id in enumerate(index_ids):
@@ -437,7 +439,7 @@
       result = []
       for value in cell_range.itervalues():
         result_items = sorted(value.iteritems(), key=lambda x:x[1])
-        result.extend(x[0] for x in result_items)
+        result.append([x[0] for x in result_items])
       return result
 
     security.declareProtected( Permissions.ModifyPortalContent, 'newCell' )




More information about the Erp5-report mailing list