changeset 1206:728a0809183e

handle multiple unrelated indexed classes
author Richard Jones <richard@users.sourceforge.net>
date Wed, 25 Sep 2002 05:06:14 +0000
parents 0df08772f166
children e47d9bb1455b
files roundup/indexer.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/indexer.py	Wed Sep 25 04:56:21 2002 +0000
+++ b/roundup/indexer.py	Wed Sep 25 05:06:14 2002 +0000
@@ -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 @@
                     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

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