Commit e460a6ca authored by Andreas Jung's avatar Andreas Jung

Collector #1826: manage_convertIndexes() did not handle PathIndexes properly

parent 52c5f09c
...@@ -38,18 +38,18 @@ Zope Changes ...@@ -38,18 +38,18 @@ Zope Changes
- Fixed CMFBTreeFolder for CMF 1.5+ - Fixed CMFBTreeFolder for CMF 1.5+
- WebDAV COPY and MOVE did not call '_notifyOfCopyTo' and - WebDAV COPY and MOVE did not call '_notifyOfCopyTo' and '_postCopy'
'_postCopy' hooks like it was done in hooks like it was done in OFS.CopySupport. Additionally added
OFS.CopySupport. Additionally added 'manage_changeOwnershipType' to make MOVE behave even closer to
'manage_changeOwnershipType' to make MOVE behave even closer OFS.CopySupport.
to OFS.CopySupport.
- Collector #1548: Fix 'httplib' usage in ZPublisher.Client. - Collector #1548: Fix 'httplib' usage in ZPublisher.Client.
- 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 did not treat DateRangeIndexes properly - manage_convertIndexes did not treat DateRangeIndexes and PathIndexes
properly.
Zope 2.8.0 (2005/06/11) Zope 2.8.0 (2005/06/11)
......
...@@ -927,10 +927,14 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -927,10 +927,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