[Zope-dev] ZCatalog: Forgot to mention

Martijn Pieters mj@digicool.com
Thu, 9 Mar 2000 00:56:32 +0100


From: "Jason Spisak" <444@hiretechs.com>
> Tom,
>
> Michel can correct me if I'm wrong here, but I believe only properties
> get indexed in the Catalog.  YOu can also only retuen properties as
> meta_data.  If you want the value of a given method that comes up fora
> Catalog result, you do this:
>
> <dtml-in "Catalog.searchResults(title='foo')">
>  <dtml-with "resolve_url(getpath(data_record_id_),REQUEST)">
>   <dtml-var getParentEx>
>  </dtml-with>
> </dtml-in>
>
> This will return the value of getParentEx method for the record
> returned.

You can catalog mthod results as well. But as catalog won't pass in any
parameters, you cannot use DTML Methods or Documents. Use an External Method
or Python Method instead.

Martijn Pieters
| Software Engineer    mailto:mj@digicool.com
| Digital Creations  http://www.digicool.com/
| Creators of Zope       http://www.zope.org/
|   The Open Source Web Application Server
---------------------------------------------