[Neo-report] r2183 gregory - /trunk/neo/master/transactions.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jun 21 17:54:48 CEST 2010


Author: gregory
Date: Mon Jun 21 17:54:47 2010
New Revision: 2183

Log:
Add prepared attribute on master's transaction.

Modified:
    trunk/neo/master/transactions.py

Modified: trunk/neo/master/transactions.py
==============================================================================
--- trunk/neo/master/transactions.py [iso-8859-1] (original)
+++ trunk/neo/master/transactions.py [iso-8859-1] Mon Jun 21 17:54:47 2010
@@ -25,6 +25,8 @@ class Transaction(object):
         A pending transaction
     """
 
+    _prepared = False
+
     def __init__(self, node, tid):
         self._node = node
         self._tid = tid
@@ -57,6 +59,12 @@ class Transaction(object):
         """
         return self._tid
 
+    def isPrepared(self):
+        """
+
+        """
+        return self._prepared
+
     def getMessageId(self):
         """
             Returns the packet ID to use in the answer
@@ -85,6 +93,7 @@ class Transaction(object):
         self._oid_list = oid_list
         self._uuid_dict = dict.fromkeys(uuid_list, False)
         self._msg_id = msg_id
+        self._prepared = True
 
     def forget(self, uuid):
         """





More information about the Neo-report mailing list