[Zope-dev] PathIndex doesn't index last part of path

2002-08-17 Thread Andy McKay
This is mostly a question for AJ, but any input would be great. This bug bit me today and is documented here: http://collector.zope.org/Zope/449/ISSUE_TRANSCRIPT/view I dont understand the brief argument against this one, it would make sense to me to able to pull an object out of the catalog

Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-17 Thread Casey Duncan
A PathIndex is designed to make it more efficient to aggregate objects at various levels of containment. Their primary use case AFAIK is to allow to to limit queries to particular places within a hierarchy. The idea is to eliminate recursive searching of leaf level folders when you want all

Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-17 Thread Casey Duncan
A PathIndex is designed to make it more efficient to aggregate objects at various levels of containment. Their primary use case AFAIK is to allow to to limit queries to particular places within a hierarchy. The idea is to eliminate recursive searching of leaf level folders when you want all

Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-17 Thread Andy McKay
[snip] Hmm ok, I can see those reasons. Unfortunately, ZCatalog does not expose this to the surface but you can write a trivial external method to do it. And I might entertain adding a ZCatalog API to do so if I had a good use case. Ah... I think this might be the best idea, I'll add that in