[Neo-report] r2300 vincent - in /trunk/neo/storage/database: manager.py mysqldb.py

nobody at svn.erp5.org nobody at svn.erp5.org
Sun Sep 5 23:22:00 CEST 2010


Author: vincent
Date: Sun Sep  5 23:21:59 2010
New Revision: 2300

Log:
Define & document _getDataTID on database manager.

Modified:
    trunk/neo/storage/database/manager.py
    trunk/neo/storage/database/mysqldb.py

Modified: trunk/neo/storage/database/manager.py
==============================================================================
--- trunk/neo/storage/database/manager.py [iso-8859-1] (original)
+++ trunk/neo/storage/database/manager.py [iso-8859-1] Sun Sep  5 23:21:59 2010
@@ -296,6 +296,25 @@ class DatabaseManager(object):
         pack state (True for packed)."""
         raise NotImplementedError
 
+    def _getDataTID(self, oid, tid=None, before_tid=None):
+        """
+        Return a 2-tuple:
+        tid (int)
+            tid corresponding to received parameters
+        serial
+            tid at which actual object data is located
+
+        If 'tid is None', requested object and transaction could
+        not be found.
+        If 'serial is None', requested object exist but has no data (its creation
+        has been undone).
+        If 'tid == serial', it means that requested transaction
+        contains object data.
+        Otherwise, it's an undo transaction which did not involve conflict
+        resolution.
+        """
+        raise NotImplementedError
+
     def findUndoTID(self, oid, tid, undone_tid, transaction_object):
         """
         oid

Modified: trunk/neo/storage/database/mysqldb.py
==============================================================================
--- trunk/neo/storage/database/mysqldb.py [iso-8859-1] (original)
+++ trunk/neo/storage/database/mysqldb.py [iso-8859-1] Sun Sep  5 23:21:59 2010
@@ -455,22 +455,6 @@ class MySQLDatabaseManager(DatabaseManag
         return tid, data_serial
 
     def _getDataTID(self, oid, tid=None, before_tid=None):
-        """
-        Return a 2-tuple:
-        tid (int)
-            tid corresponding to received parameters
-        serial
-            tid at which actual object data is located
-
-        If 'tid is None', requested object and transaction could
-        not be found.
-        If 'serial is None', requested object exist but has no data (its creation
-        has been undone).
-        If 'tid == serial', it means that requested transaction
-        contains object data.
-        Otherwise, it's an undo transaction which did not involve conflict
-        resolution.
-        """
         result = self._getObject(oid, tid=tid, before_tid=before_tid)
         if result is None:
             result = (None, None)





More information about the Neo-report mailing list