Skip to content

Commit 0c7e2de

Browse files
author
Richard Jones
committed
handle multiple unrelated indexed classes
1 parent a4339e0 commit 0c7e2de

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

roundup/indexer.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# that promote freedom, but obviously am giving up any rights
1515
# to compel such.
1616
#
17-
#$Id: indexer.py,v 1.13 2002-09-10 00:18:20 richard Exp $
17+
#$Id: indexer.py,v 1.14 2002-09-25 05:06:14 richard Exp $
1818
'''
1919
This module provides an indexer class, RoundupIndexer, that stores text
2020
indices in a roundup instance. This class makes searching the content of
@@ -169,6 +169,10 @@ def search(self, search_terms, klass, ignore={},
169169
nodeids[nodeid] = {}
170170
continue
171171

172+
# make sure the class is a linked one, otherwise ignore
173+
if not designator_propname.has_key(classname):
174+
continue
175+
172176
# it's a linked class - set up to do the klass.find
173177
linkprop = designator_propname[classname] # eg, msg -> messages
174178
propspec[linkprop][nodeid] = 1

0 commit comments

Comments
 (0)