[Zope3-checkins] CVS: Zope3/src/zodb/storage - base.py:1.25

Barry Warsaw barry@wooz.org
Tue, 8 Apr 2003 10:46:57 -0400


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

Modified Files:
	base.py 
Log Message:
BaseStorage.lastObjectId(): Added.

Also, whitespace normalization.


=== Zope3/src/zodb/storage/base.py 1.24 => 1.25 ===
--- Zope3/src/zodb/storage/base.py:1.24	Sun Mar 23 10:14:37 2003
+++ Zope3/src/zodb/storage/base.py	Tue Apr  8 10:46:56 2003
@@ -75,7 +75,7 @@
     lastSerial()
     lastTransaction()
     XXX the previous two should be provided by base
-    
+
     _begin()
     _vote()
     _abort()
@@ -87,7 +87,7 @@
     If the subclass wants to implement IVersionStorage, it must implement
     all the methods in that interface.
     """
-    
+
     _transaction = None # Transaction that is being committed
     _serial = ZERO      # Transaction serial number
     _tstatus = ' '      # Transaction status, used for copying data
@@ -147,6 +147,9 @@
             return self._oid
         finally:
             self._lock_release()
+
+    def lastObjectId(self):
+        return self._oid
 
     def registerDB(self, db):
         pass # we don't care