Commit 29af8b6b authored by Jeremy Hylton's avatar Jeremy Hylton

Implement lastTransaction() for MappingStorage.

XXX Maybe this belongs in BaseStorage.
parent 06d9102e
......@@ -87,7 +87,7 @@ method::
and call it to minotor the storage.
"""
__version__='$Revision: 1.7 $'[11:-2]
__version__='$Revision: 1.8 $'[11:-2]
import POSException, BaseStorage, string, utils
from TimeStamp import TimeStamp
......@@ -100,6 +100,7 @@ class MappingStorage(BaseStorage.BaseStorage):
self._index={}
self._tindex=[]
self._ltid = None
# Note:
# If you subclass this and use a persistent mapping facility
......@@ -153,6 +154,10 @@ class MappingStorage(BaseStorage.BaseStorage):
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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment