[Zope-Checkins] CVS: Zope2 - TransactionalUndoVersionStorage.py:1.2
barry@digicool.com
barry@digicool.com
Wed, 11 Apr 2001 18:05:54 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/ZODB/tests
In directory korak:/tmp/cvs-serv4967
Modified Files:
TransactionalUndoVersionStorage.py
Log Message:
UndoVersionStorage class renamed TransactionalUndoVersionStorage and
made a true mixin (not a subclass).
--- Updated File TransactionalUndoVersionStorage.py in package Zope2/lib/python/ZODB --
--- TransactionalUndoVersionStorage.py 2001/04/10 20:45:58 1.1
+++ TransactionalUndoVersionStorage.py 2001/04/11 22:05:53 1.2
@@ -1,9 +1,12 @@
-import UndoStorage, VersionStorage
+# Check interactions between transactionalUndo() and versions. Any storage
+# that supports both transactionalUndo() and versions must pass these tests.
-class UndoVersionStorage(UndoStorage.UndoStorage,
- VersionStorage.VersionStorage):
+import pickle
+from ZODB import POSException
-
+
+
+class TransactionalUndoVersionStorage:
def checkUndoInVersion(self):
oid = self._storage.new_oid()
version = 'one'
--- Updated File TransactionalUndoVersionStorage.py in package Zope2 --
--- TransactionalUndoVersionStorage.py 2001/04/10 20:45:58 1.1
+++ TransactionalUndoVersionStorage.py 2001/04/11 22:05:53 1.2
@@ -1,9 +1,12 @@
-import UndoStorage, VersionStorage
+# Check interactions between transactionalUndo() and versions. Any storage
+# that supports both transactionalUndo() and versions must pass these tests.
-class UndoVersionStorage(UndoStorage.UndoStorage,
- VersionStorage.VersionStorage):
+import pickle
+from ZODB import POSException
-
+
+
+class TransactionalUndoVersionStorage:
def checkUndoInVersion(self):
oid = self._storage.new_oid()
version = 'one'