[Zope] A Description with a Search Engine using the advanced
ZCatalog program ?
Chris McDonough
chrism@digicool.com
Thu, 20 Jul 2000 15:15:03 -0400
The ZCatalog doesn't return the actual object that is indexed. It
returns a representation of the object in the form of a "brain" which
you can use to reference the object.
<dtml-in Catalog>
<dtml-with sequence-item>
<dtml-var "Catalog.getobject(data_record_id_).myMethod()"><br>
</dtml-with>
</dtml-in>
This snippet iterates over all the results from a catalog and calls the
myMethod() method on every one of the objects referenced by the returned
results. "data_record_id_" is an attribute of the "brain" object
returned from the catalog search. "getobject" is a method of the
Catalog which returns the actual object referenced by the
"data_record_id_".
> -----Original Message-----
> From: Jonathan Desp [mailto:jonathandesp@atomasoft.com]
> Sent: Thursday, July 20, 2000 3:02 PM
> To: zope zope zope
> Subject: [Zope] A Description with a Search Engine using the advanced
> ZCatalog program ?
>
>
>
> An accurate question here:
>
> I read the page:
>
> http://www.zope.org/Members/Zen/howto/AdvZCatalogSearching
>
> But I'm not able to understand very much, what is the section
> where they are
> talking about "a small description for every result" you are
> getting from
> the ZCatalog search engine ?
>
> My site is almost ready ! As well as my business plan for my
> company...
>
> Very truly yours,
>
> <><><><><><><><><><><><>
> Jonathan Desp
> Atomasoft
> Matter will become software
> http://www.atomasoft.com
> <><><><><><><><><><><><>
>
> "I used to think that the brain was the most wonderful organ
> in my body.
> Then I realized who was telling me this."
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>