diff roundup/backends/indexer_dbm.py @ 3076:2817a4db901d

Change indexer_common.search() to take a list of nodeids... ...instead of a dictionary (with random keys) from getHits(). This removes another Python 2.1 incompatility (using dict() and enumerate()) and removes the need for some code in indexer_rdbms.find().
author Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
date Wed, 05 Jan 2005 22:14:21 +0000
parents 1c063814d567
children a8c2371f45b6
line wrap: on
line diff
--- a/roundup/backends/indexer_dbm.py	Wed Jan 05 22:10:28 2005 +0000
+++ b/roundup/backends/indexer_dbm.py	Wed Jan 05 22:14:21 2005 +0000
@@ -14,7 +14,7 @@
 #     that promote freedom, but obviously am giving up any rights
 #     to compel such.
 # 
-#$Id: indexer_dbm.py,v 1.3 2005-01-04 16:48:46 jlgijsbers Exp $
+#$Id: indexer_dbm.py,v 1.4 2005-01-05 22:14:21 jlgijsbers Exp $
 '''This module provides an indexer class, RoundupIndexer, that stores text
 indices in a roundup instance.  This class makes searching the content of
 messages, string properties and text files possible.
@@ -184,7 +184,7 @@
                         del hits[fileid]
         if hits is None:
             return {}
-        return hits
+        return hits.values()
 
     segments = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ#_-!"
     def load_index(self, reload=0, wordlist=None):

Roundup Issue Tracker: http://roundup-tracker.org/