[Zope-CMF] concrete example of using path in portal_catalog search?
Paul Winkler
pw_lists@slinkp.com
Tue, 29 Oct 2002 15:35:10 -0800
On Tue, Oct 29, 2002 at 05:23:13PM -0600, Mark McEahern wrote:
> Suppose I have a path:
>
> /a/b/c/d/e
>
> and I want to search for NewsItems in b ONLY -- that is, if there's one in
> d, I do not want it in the search results.
would it work to add parent_folder_path as a StringIndex,
and for each object you catalog, use something like
(untested)
parent_folder = the_object.aq_inner().aq_parent()
parent_folder_path = parent.absolute_url(relative=1)
for this index?
--PW
--
Paul Winkler
http://www.slinkp.com
"Welcome to Muppet Labs, where the future is made - today!"