[Zodb-checkins] CVS: StandaloneZODB/ZEO - ClientStorage.py:1.33.2.5

Jeremy Hylton jeremy@zope.com
Fri, 26 Oct 2001 15:34:29 -0400


Update of /cvs-repository/StandaloneZODB/ZEO
In directory cvs.zope.org:/tmp/cvs-serv14627

Modified Files:
      Tag: zeo-1_0-branch
	ClientStorage.py 
Log Message:
Make supportsTransactionalUndo() robust in the face of a storage
server that doesn't even know about transactional undo.


=== StandaloneZODB/ZEO/ClientStorage.py 1.33.2.4 => 1.33.2.5 ===
         finally: self._lock_release()
             
-        
-
-    def supportsUndo(self): return self._info['supportsUndo']
-    def supportsVersions(self): return self._info['supportsVersions']
+    def supportsUndo(self):
+        return self._info['supportsUndo']
+    
+    def supportsVersions(self):
+        return self._info['supportsVersions']
+    
     def supportsTransactionalUndo(self):
-        return self._info['supportsTransactionalUndo']
+        try:
+            return self._info['supportsTransactionalUndo']
+        except KeyError:
+            return 0
         
     def tpc_abort(self, transaction):
         self._lock_acquire()