[Zope3-checkins] CVS: Zope3/src/zodb/storage/file - main.py:1.9

Barry Warsaw barry@zope.com
Thu, 10 Jul 2003 13:41:13 -0400


Update of /cvs-repository/Zope3/src/zodb/storage/file
In directory cvs.zope.org:/tmp/cvs-serv27360

Modified Files:
	main.py 
Log Message:
Better coverage for lastTransaction() by moving the most common usage
into the BaseStorage class.  Since this method is required by
IStorage, and most implementations do it the same way, it makes
sense.

lastTransaction(): Factor this out to the base class.


=== Zope3/src/zodb/storage/file/main.py 1.8 => 1.9 ===
--- Zope3/src/zodb/storage/file/main.py:1.8	Tue Jun 24 16:08:20 2003
+++ Zope3/src/zodb/storage/file/main.py	Thu Jul 10 13:41:09 2003
@@ -927,10 +927,6 @@
     def iterator(self, start=None, stop=None):
         return FileIterator(self._file_name, start, stop)
 
-    def lastTransaction(self):
-        """Return transaction id for last committed transaction"""
-        return self._ltid
-
     def lastSerial(self, oid):
         """Return last serialno committed for object oid.