[Erp5-report] r7154 - /erp5/trunk/products/ERP5Type/XMLMatrix.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed May 10 17:12:52 CEST 2006


Author: romain
Date: Wed May 10 17:12:51 2006
New Revision: 7154

URL: http://svn.erp5.org?rev=7154&view=rev
Log:
Remove a lambda call.

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=7154&r1=7153&r2=7154&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/XMLMatrix.py (original)
+++ erp5/trunk/products/ERP5Type/XMLMatrix.py Wed May 10 17:12:51 2006
@@ -456,7 +456,8 @@
       self._renameCellRange(*kw, **kwd)
       self.reindexObject()
 
-    security.declareProtected( Permissions.AccessContentsInformation, 'getCellRange' )
+    security.declareProtected(Permissions.AccessContentsInformation,
+                              'getCellRange')
     def getCellRange(self, base_id='cell'):
       """
           Returns the cell range as a list of index ids
@@ -469,7 +470,7 @@
       for i in range(0,len(cell_range.keys())):
         result_items = cell_range[i].items()
         result_items.sort(lambda x, y: x[1]-y[1])
-        result_items = map(lambda x:x[0], result_items)
+        result_items = [x[0] for x in result_items]
         result += [result_items]
       return result
 




More information about the Erp5-report mailing list