Commit c8f49d80 authored by Vincent Pelletier's avatar Vincent Pelletier

Don't redefine oid_list.

If anything went wrong, an exception must be raised before this point.
And if everything has been fine, oid_list and data_dict.keys() are the
same.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1854 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 9dea11df
......@@ -809,9 +809,8 @@ class Application(object):
data_dict[oid] = data
# Third do transaction with old data
oid_list = data_dict.keys()
for oid in oid_list:
self.store(oid, transaction_id, data_dict[oid], None, txn,
for oid, data in data_dict.iteritems():
self.store(oid, transaction_id, data, None, txn,
tryToResolveConflict)
self.waitStoreResponses(tryToResolveConflict)
return self.local_var.tid, oid_list
......
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