[Zodb-checkins] CVS: Zope/lib/python/ZODB - ConflictResolution.py:1.18.34.1 DB.py:1.53.2.3 Mount.py:1.19.20.1

Tres Seaver cvs-admin at zope.org
Mon Nov 17 17:34:53 EST 2003


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

Modified Files:
      Tag: Zope-2_7-branch
	ConflictResolution.py DB.py Mount.py 
Log Message:
 - Merge tseaver-strexp_delenda-branch to the 2.7 branch.


=== Zope/lib/python/ZODB/ConflictResolution.py 1.18 => 1.18.34.1 ===
--- Zope/lib/python/ZODB/ConflictResolution.py:1.18	Mon Dec  9 17:31:19 2002
+++ Zope/lib/python/ZODB/ConflictResolution.py	Mon Nov 17 17:34:18 2003
@@ -14,6 +14,7 @@
 import sys
 from cStringIO import StringIO
 from cPickle import Unpickler, Pickler
+from pickle import PicklingError
 
 from ZODB.POSException import ConflictError
 import zLOG
@@ -49,7 +50,7 @@
         return "PR(%s %s)" % (id(self), self.data)
 
     def __getstate__(self):
-        raise "Can't pickle PersistentReference"
+        raise PicklingError, "Can't pickle PersistentReference"
 
 class PersistentReferenceFactory:
 


=== Zope/lib/python/ZODB/DB.py 1.53.2.2 => 1.53.2.3 ===
--- Zope/lib/python/ZODB/DB.py:1.53.2.2	Mon Sep 15 17:26:56 2003
+++ Zope/lib/python/ZODB/DB.py	Mon Nov 17 17:34:18 2003
@@ -277,7 +277,7 @@
         transaction.register(CommitVersion(self, source, destination))
 
     def exportFile(self, oid, file=None):
-        raise 'Not yet implemented'
+        raise NotImplementedError
 
     def getCacheDeactivateAfter(self):
         return self._cache_deactivate_after
@@ -301,7 +301,7 @@
         return self._version_pool_size
 
     def importFile(self, file):
-        raise 'Not yet implemented'
+        raise NotImplementedError
 
     def invalidate(self, oids, connection=None, version='',
                    rc=sys.getrefcount):


=== Zope/lib/python/ZODB/Mount.py 1.19 => 1.19.20.1 ===
--- Zope/lib/python/ZODB/Mount.py:1.19	Thu Feb  6 15:31:17 2003
+++ Zope/lib/python/ZODB/Mount.py	Mon Nov 17 17:34:18 2003
@@ -88,7 +88,7 @@
         '''Gets the database object, usually by creating a Storage object
         and returning ZODB.DB(storage).
         '''
-        raise 'NotImplemented'
+        raise NotImplementedError
 
     def _getDB(self):
         '''Creates or opens a DB object.




More information about the Zodb-checkins mailing list