[Neo-report] r2282 vincent - /trunk/neo/client/app.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Sep 2 18:29:51 CEST 2010


Author: vincent
Date: Thu Sep  2 18:29:51 2010
New Revision: 2282

Log:
Factorise getConnForCell lookup.

Modified:
    trunk/neo/client/app.py

Modified: trunk/neo/client/app.py
==============================================================================
--- trunk/neo/client/app.py [iso-8859-1] (original)
+++ trunk/neo/client/app.py [iso-8859-1] Thu Sep  2 18:29:51 2010
@@ -877,8 +877,9 @@ class Application(object):
         shuffle(cell_list)
         cell_list.sort(key=self.cp.getCellSortKey)
         packet = Packets.AskTransactionInformation(undone_tid)
+        getConnForCell = self.cp.getConnForCell
         for cell in cell_list:
-            conn = self.cp.getConnForCell(cell)
+            conn = getConnForCell(cell)
             if conn is None:
                 continue
 





More information about the Neo-report mailing list