[Neo-report] r2567 vincent - /trunk/neo/client/app.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Dec 23 11:21:55 CET 2010
Author: vincent
Date: Thu Dec 23 11:21:55 2010
New Revision: 2567
Log:
Factorise history packet creation.
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 Dec 23 11:21:55 2010
@@ -1208,6 +1208,7 @@ class Application(object):
cell_list = self._getCellListForOID(oid, readable=True)
shuffle(cell_list)
cell_list.sort(key=self.cp.getCellSortKey)
+ packet = Packets.AskObjectHistory(oid, 0, size)
for cell in cell_list:
# FIXME: we keep overwriting self.local_var.history here, we
# should aggregate it instead.
@@ -1217,7 +1218,7 @@ class Application(object):
self.local_var.history = None
try:
- self._askStorage(conn, Packets.AskObjectHistory(oid, 0, size))
+ self._askStorage(conn, packet)
except ConnectionClosed:
continue
More information about the Neo-report
mailing list