Commit 4a290d0a authored by Vincent Pelletier's avatar Vincent Pelletier

Factorise getConnForCell lookup.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2282 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent f6e9fd42
...@@ -877,8 +877,9 @@ class Application(object): ...@@ -877,8 +877,9 @@ class Application(object):
shuffle(cell_list) shuffle(cell_list)
cell_list.sort(key=self.cp.getCellSortKey) cell_list.sort(key=self.cp.getCellSortKey)
packet = Packets.AskTransactionInformation(undone_tid) packet = Packets.AskTransactionInformation(undone_tid)
getConnForCell = self.cp.getConnForCell
for cell in cell_list: for cell in cell_list:
conn = self.cp.getConnForCell(cell) conn = getConnForCell(cell)
if conn is None: if conn is None:
continue continue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment