Commit 1d84ac1e authored by Andreas Jung's avatar Andreas Jung

Collector #1826: manage_convertIndexes() - fixed handling of PathIndexes

parent 9df9ac51
...@@ -39,7 +39,7 @@ Zope Changes ...@@ -39,7 +39,7 @@ Zope Changes
- Collector #1808: manage_convertIndexes no longer tries to change the - Collector #1808: manage_convertIndexes no longer tries to change the
index types causing some trouble with CMF. index types causing some trouble with CMF.
- manage_convertIndexes now handles DateRangeIndexes properly - manage_convertIndexes now handles DateRangeIndexes and PathIndexes properly
- WebDAV COPY and MOVE did not call '_notifyOfCopyTo' and - WebDAV COPY and MOVE did not call '_notifyOfCopyTo' and
'_postCopy' hooks like it was done in '_postCopy' hooks like it was done in
......
...@@ -925,10 +925,14 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -925,10 +925,14 @@ class ZCatalog(Folder, Persistent, Implicit):
for idx in self.Indexes.objectValues(): for idx in self.Indexes.objectValues():
bases = [str(name) for name in idx.__class__.__bases__] bases = [str(name) for name in idx.__class__.__bases__]
found = False found = False
for base in bases:
if 'UnIndex' in base: if idx.meta_type == 'PathIndex':
found = True found = True
break else:
for base in bases:
if 'UnIndex' in base:
found = True
break
if found: if found:
idx_type = idx.meta_type idx_type = idx.meta_type
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment