From 76d057591b971277cf76b7f3167c51d28ffefe10 Mon Sep 17 00:00:00 2001 From: Andreas Jung Date: Sat, 2 Jul 2005 08:50:41 +0000 Subject: [PATCH] Collector #1826: manage_convertIndexes() did not handle PathIndexes properly --- ZCatalog.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ZCatalog.py b/ZCatalog.py index 87766d3d..8f1a112a 100644 --- a/ZCatalog.py +++ b/ZCatalog.py @@ -927,10 +927,14 @@ def manage_convertIndexes(self, REQUEST=None, RESPONSE=None, URL1=None): for idx in self.Indexes.objectValues(): bases = [str(name) for name in idx.__class__.__bases__] found = False - for base in bases: - if 'UnIndex' in base: - found = True - break + + if idx.meta_type == 'PathIndex': + found = True + else: + for base in bases: + if 'UnIndex' in base: + found = True + break if found: idx_type = idx.meta_type