plone / Products.ExtendedPathIndex

Zope2 Index for paths. Supports depth limiting, and the ability to build a structure usable for navtrees and sitemaps
1 stars 1 forks source link

Remove optimization #1

Closed malthe closed 11 years ago

malthe commented 12 years ago

This optimization seems to short-circuit navtree-searches when the input path is longer than any of the indexed values – self._depth in the code.

The behavior is inconsistent, because as long as the input path length is shorter or equal to the longest indexed path, there is no requirement that the entire path is indexed already.