[Zope-Checkins] CVS: ZODB3/ZODB - MappingStorage.py:1.8
Jeremy Hylton
jeremy@zope.com
Thu, 9 Jan 2003 18:57:09 -0500
Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv14667/ZODB
Modified Files:
MappingStorage.py
Log Message:
Implement lastTransaction() for MappingStorage.
XXX Maybe this belongs in BaseStorage.
=== ZODB3/ZODB/MappingStorage.py 1.7 => 1.8 ===
--- ZODB3/ZODB/MappingStorage.py:1.7 Wed Aug 14 18:07:09 2002
+++ ZODB3/ZODB/MappingStorage.py Thu Jan 9 18:57:06 2003
@@ -100,6 +100,7 @@
self._index={}
self._tindex=[]
+ self._ltid = None
# Note:
# If you subclass this and use a persistent mapping facility
@@ -153,6 +154,10 @@
index=self._index
for oid, p in self._tindex: index[oid]=p
+ self._ltid = self._serial
+
+ def lastTransaction(self):
+ return self._ltid
def pack(self, t, referencesf):