[Zope3-checkins] CVS: Zope3/src/zodb - connection.py:1.3

Jeremy Hylton jeremy@zope.com
Tue, 21 Jan 2003 13:18:47 -0500


Update of /cvs-repository/Zope3/src/zodb
In directory cvs.zope.org:/tmp/cvs-serv8717/zodb

Modified Files:
	connection.py 
Log Message:
Make version argument to reset() optional.


=== Zope3/src/zodb/connection.py 1.2 => 1.3 ===
--- Zope3/src/zodb/connection.py:1.2	Wed Dec 25 09:12:16 2002
+++ Zope3/src/zodb/connection.py	Tue Jan 21 13:18:44 2003
@@ -217,8 +217,7 @@
     # Experimental. Other connections can register to be closed
     # when we close by putting something here.
 
-    __implements__ = (IConnection,
-                      IPersistentDataManager)
+    __implements__ = IConnection, IPersistentDataManager
 
     def __init__(self, db, version='', cache_size=400):
         self._db = db
@@ -345,7 +344,7 @@
         # required by the IPersistentDataManager interface, but unimplemented
         return None
 
-    def reset(self, version):
+    def reset(self, version=""):
         if version != self._version:
             # XXX I think it's necessary to clear the cache here, because
             # the objects in the cache don't know that they were in a