[Zodb-checkins] CVS: Zope/lib/python/ZODB - ConflictResolution.py:1.20 DB.py:1.56 Mount.py:1.20

Tres Seaver cvs-admin at zope.org
Tue Nov 18 08:17:47 EST 2003


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

Modified Files:
	ConflictResolution.py DB.py Mount.py 
Log Message:
 - Merge tseaver-strexp_delenda-branch to the head.


=== Zope/lib/python/ZODB/ConflictResolution.py 1.19 => 1.20 ===
--- Zope/lib/python/ZODB/ConflictResolution.py:1.19	Thu Oct  2 19:56:55 2003
+++ Zope/lib/python/ZODB/ConflictResolution.py	Tue Nov 18 08:17:16 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
@@ -47,7 +48,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.55 => 1.56 ===
--- Zope/lib/python/ZODB/DB.py:1.55	Thu Oct  2 14:17:19 2003
+++ Zope/lib/python/ZODB/DB.py	Tue Nov 18 08:17:16 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.20 ===
--- Zope/lib/python/ZODB/Mount.py:1.19	Thu Feb  6 15:31:17 2003
+++ Zope/lib/python/ZODB/Mount.py	Tue Nov 18 08:17:16 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