Commit cca3e46c authored by Vincent Pelletier's avatar Vincent Pelletier

lock doesn't return anything now, but uses callback.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2565 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent efa808f3
......@@ -373,7 +373,8 @@ class TransactionManager(object):
def lock(self, tid, uuid):
"""
Set that a node has locked the transaction.
Returns True if all are now locked
If transaction is completely locked, calls function given at
instanciation time.
"""
assert tid in self._tid_dict, "Transaction not started"
txn = self._tid_dict[tid]
......
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