[Zodb-checkins] CVS: Zope/lib/python/ZODB - FileStorage.py:1.103

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


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

Modified Files:
	FileStorage.py 
Log Message:
Fix UndoSearch when there is nothing to Undo


=== Zope/lib/python/ZODB/FileStorage.py 1.102 => 1.103 ===
--- Zope/lib/python/ZODB/FileStorage.py:1.102	Fri Sep 13 09:58:54 2002
+++ Zope/lib/python/ZODB/FileStorage.py	Tue Sep 17 14:25:52 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