[Zodb-checkins] CVS: Packages/bsddb3Storage - CommitLog.py:1.3

barry@digicool.com barry@digicool.com
Thu, 29 Mar 2001 19:13:10 -0500 (EST)


Update of /cvs-repository/Packages/bsddb3Storage
In directory korak:/tmp/cvs-serv11935

Modified Files:
	CommitLog.py 
Log Message:
CommitLog.next(): added, but just to raise NotImplementedError

{PacklessLog,FullLog}.next_object() => next()



--- Updated File CommitLog.py in package Packages/bsddb3Storage --
--- CommitLog.py	2001/03/30 00:10:38	1.2
+++ CommitLog.py	2001/03/30 00:13:09	1.3
@@ -263,6 +263,9 @@
             return None
         # BAW: let TypeError percolate up.
 
+    def next(self):
+        raise NotImplementedError
+
     def close(self, unlink=0):
         """Close the file.
 
@@ -289,7 +292,7 @@
     def write_object(self, oid, pickle):
         self._append('o', (oid, pickle))
 
-    def next_object(self):
+    def next(self):
         # Get the next object pickle data.  Return the oid and the pickle
         # string.  Raise a LogCorruptedError if there's an incomplete marshal
         # record.
@@ -360,7 +363,7 @@
     def write_discard_version(self, vid):
         self._append('d', (vid,))
 
-    def next_object(self):
+    def next(self):
         # Get the next object record.  Return the key for unpacking and the
         # object record data.
         rec = self._next()