[Zope-Checkins] SVN: Zope/trunk/lib/python/tempstorage/TemporaryStorage.py Collector 1341: TemporaryStorage can't be used under a ZEO server.

Chris McDonough chrism at plope.com
Wed May 19 19:22:48 EDT 2004


Log message for revision 24838:
Collector 1341: TemporaryStorage can't be used under a ZEO server.



-=-
Modified: Zope/trunk/lib/python/tempstorage/TemporaryStorage.py
===================================================================
--- Zope/trunk/lib/python/tempstorage/TemporaryStorage.py	2004-05-19 22:23:20 UTC (rev 24837)
+++ Zope/trunk/lib/python/tempstorage/TemporaryStorage.py	2004-05-19 23:22:48 UTC (rev 24838)
@@ -71,6 +71,10 @@
         self._recently_gc_oids = [None for x in range (RECENTLY_GC_OIDS_LEN)]
         self._oid = '\0\0\0\0\0\0\0\0'
 
+    def lastTransaction(self):
+        """ Return tid for last committed transaction (for ZEO) """
+        return self._ltid
+
     def __len__(self):
         return len(self._index)
 
@@ -173,6 +177,7 @@
         serial=self._tid
         index=self._index
         opickle=self._opickle
+        self._ltid = tid
 
         # iterate over all the objects touched by/created within this
         # transaction




More information about the Zope-Checkins mailing list