[Zodb-checkins] CVS: Zope3/lib/python/ZODB - Connection.py:1.83

Jeremy Hylton jeremy@zope.com
Thu, 10 Oct 2002 17:07:30 -0400


Update of /cvs-repository/Zope3/lib/python/ZODB
In directory cvs.zope.org:/tmp/cvs-serv19497

Modified Files:
	Connection.py 
Log Message:
Make sure RollbackError is bound.


=== Zope3/lib/python/ZODB/Connection.py 1.82 => 1.83 ===
--- Zope3/lib/python/ZODB/Connection.py:1.82	Mon Oct  7 19:25:31 2002
+++ Zope3/lib/python/ZODB/Connection.py	Thu Oct 10 17:07:29 2002
@@ -47,7 +47,7 @@
 from ZODB.TmpStore import TmpStore
 from ZODB.ConflictResolution import ResolvedSerial
 from ZODB.IConnection import IConnection
-from ZODB.POSException import ConflictError
+from ZODB.POSException import ConflictError, RollbackError
 from ZODB.Serialize import ConnectionUnpickler, \
      new_persistent_id, getClassMetadata
 from ZODB.utils import u64
@@ -524,6 +524,6 @@
     def rollback(self):
         if not self._tmp_undo.current(self._conn._storage):
             msg = "savepoint has already been committed"
-            raise POSException.RollbackError(msg)
+            raise RollbackError(msg)
         self._tmp_undo.rollback()
         self._conn._cache.invalidateMany(self._conn._modified)