Commit ccc9c451 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Add prepared attribute on master's transaction.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2183 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 26d520b0
...@@ -25,6 +25,8 @@ class Transaction(object): ...@@ -25,6 +25,8 @@ class Transaction(object):
A pending transaction A pending transaction
""" """
_prepared = False
def __init__(self, node, tid): def __init__(self, node, tid):
self._node = node self._node = node
self._tid = tid self._tid = tid
...@@ -57,6 +59,12 @@ class Transaction(object): ...@@ -57,6 +59,12 @@ class Transaction(object):
""" """
return self._tid return self._tid
def isPrepared(self):
"""
"""
return self._prepared
def getMessageId(self): def getMessageId(self):
""" """
Returns the packet ID to use in the answer Returns the packet ID to use in the answer
...@@ -85,6 +93,7 @@ class Transaction(object): ...@@ -85,6 +93,7 @@ class Transaction(object):
self._oid_list = oid_list self._oid_list = oid_list
self._uuid_dict = dict.fromkeys(uuid_list, False) self._uuid_dict = dict.fromkeys(uuid_list, False)
self._msg_id = msg_id self._msg_id = msg_id
self._prepared = True
def forget(self, uuid): def forget(self, uuid):
""" """
......
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