sort_index wants more than only get keyForDocument

Bug #143550 reported by Victor Safronovich
2
Affects Status Importance Assigned to Milestone
Zope 2
Fix Released
Medium
Unassigned

Bug Description

Catalog.sortResults uses 'documentToKeyMap', 'items' methods of sort_index object, but Catalog._getSortIndex only check for keyForDocument method.

plus Catalog._getSortIndex returns index object without acquisition wrapper, which is bad, because during sorting process there is no way to get catalog from index.

Tags: bug catalog
Revision history for this message
Victor Safronovich (suvit) wrote :

and method 'items' should be added to Products.PluginIndexes.common.PluggableIndex.SortIndex interface.

Revision history for this message
Hanno Schlichting (hannosch) wrote :

In current Zope SVN the items method is no longer used.

Changed in zope2:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.