[Zodb-checkins] CVS: ZODB3/ZODB - FileStorage.py:1.100.2.3

Casey Duncan casey@zope.com
Tue, 17 Sep 2002 14:28:15 -0400


Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv31669

Modified Files:
      Tag: ZODB3-3_1-branch
	FileStorage.py 
Log Message:
Fix UndoSearch where there is nothing to Undo


=== ZODB3/ZODB/FileStorage.py 1.100.2.2 => 1.100.2.3 ===
--- ZODB3/ZODB/FileStorage.py:1.100.2.2	Tue Sep 17 11:40:41 2002
+++ ZODB3/ZODB/FileStorage.py	Tue Sep 17 14:28:14 2002
@@ -2409,7 +2409,7 @@
     def search(self):
         """Search for another record."""
         dict = self._readnext()
-        if self.filter is None or self.filter(dict):
+        if dict is not None and (self.filter is None or self.filter(dict)):
             if self.i >= self.first:
                 self.results.append(dict)
             self.i += 1