From: richard Date: Wed, 25 Sep 2002 05:06:14 +0000 (+0000) Subject: handle multiple unrelated indexed classes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bbea5f39ca9f2c946c08aad26ef4e2ee7e60ff09;p=roundup.git handle multiple unrelated indexed classes git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1230 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/indexer.py b/roundup/indexer.py index 4295b70..e4d1d59 100644 --- a/roundup/indexer.py +++ b/roundup/indexer.py @@ -14,7 +14,7 @@ # that promote freedom, but obviously am giving up any rights # to compel such. # -#$Id: indexer.py,v 1.13 2002-09-10 00:18:20 richard Exp $ +#$Id: indexer.py,v 1.14 2002-09-25 05:06:14 richard Exp $ ''' This module provides an indexer class, RoundupIndexer, that stores text indices in a roundup instance. This class makes searching the content of @@ -169,6 +169,10 @@ class Indexer: nodeids[nodeid] = {} continue + # make sure the class is a linked one, otherwise ignore + if not designator_propname.has_key(classname): + continue + # it's a linked class - set up to do the klass.find linkprop = designator_propname[classname] # eg, msg -> messages propspec[linkprop][nodeid] = 1