[Zope3-checkins] CVS: Zope3/src/zodb/storage - interfaces.py:1.16
Barry Warsaw
barry@wooz.org
Tue, 8 Apr 2003 10:45:56 -0400
Update of /cvs-repository/Zope3/src/zodb/storage
In directory cvs.zope.org:/tmp/cvs-serv2854
Modified Files:
interfaces.py
Log Message:
lastObjectId(): New method which returns the last assigned object id.
Unlike newObjectId(), this is defined to work even if the storage is
opened read-only.
=== Zope3/src/zodb/storage/interfaces.py 1.15 => 1.16 ===
--- Zope3/src/zodb/storage/interfaces.py:1.15 Thu Apr 3 16:53:22 2003
+++ Zope3/src/zodb/storage/interfaces.py Tue Apr 8 10:45:55 2003
@@ -162,8 +162,15 @@
def copyTransactionsFrom(other, verbose=False):
pass
+ def lastObjectId():
+ """Return the last assigned object id.
+
+ Unlike newObjectId() this works even if the storage was opened in
+ read-only mode.
+ """
+
def lastTransaction():
- pass
+ """Return transaction id for last committed transaction."""
def lastSerial(oid):
"""Return last serialno committed for object oid.