[Zope-CVS] CVS: Products/Ape/lib/apelib/zodb3 - storage.py:1.6

Shane Hathaway shane@zope.com
Wed, 4 Jun 2003 11:45:21 -0400


Update of /cvs-repository/Products/Ape/lib/apelib/zodb3
In directory cvs.zope.org:/tmp/cvs-serv26591

Modified Files:
	storage.py 
Log Message:
Implemented the lastTransaction() method.


=== Products/Ape/lib/apelib/zodb3/storage.py 1.5 => 1.6 ===
--- Products/Ape/lib/apelib/zodb3/storage.py:1.5	Mon May 26 16:20:09 2003
+++ Products/Ape/lib/apelib/zodb3/storage.py	Wed Jun  4 11:45:21 2003
@@ -59,6 +59,7 @@
         self._sort_key = tuple(sort_keys)
         if not name:
             name = 'ApeStorage: ' + ', '.join(names)
+        self._ltid = None
         BaseStorage.BaseStorage.__init__(self, name)
 
     def __len__(self):
@@ -164,6 +165,9 @@
         keychain = self._gwio.newKeychain()
         return self._oid_encoder.encode(keychain)
 
+    def lastTransaction(self):
+        return self._ltid
+
     def _clear_temp(self):
         pass
 
@@ -178,6 +182,7 @@
     def _finish(self, tid, user, desc, ext):
         for c in self._conn_list:
             c.finish()
+        self._ltid = self._serial
 
     def _vote(self):
         for c in self._conn_list: