[Neo-report] r2162 vincent - /trunk/neo/client/app.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jun 15 12:04:21 CEST 2010
Author: vincent
Date: Tue Jun 15 12:04:17 2010
New Revision: 2162
Log:
Factorise some lookups.
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] Tue Jun 15 12:04:17 2010
@@ -766,17 +766,19 @@ class Application(object):
return
tid = self.local_var.tid
+ getCellListForOID = self._getCellListForOID
# select nodes where transaction was stored
cell_set = set(self._getCellListForTID(tid,
writable=True))
# select nodes where objects were stored
for oid in self.local_var.data_dict.iterkeys():
- cell_set |= set(self._getCellListForOID(oid, writable=True))
+ cell_set |= set(getCellListForOID(oid, writable=True))
p = Packets.AbortTransaction(tid)
+ getConnForCell = self.cp.getConnForCell
# cancel transaction one all those nodes
for cell in cell_set:
- conn = self.cp.getConnForCell(cell)
+ conn = getConnForCell(cell)
if conn is None:
continue
conn.notify(p)
More information about the Neo-report
mailing list