[Zope] ZClass and ZCatalog

Phillip J. Eby pje@telecommunity.com
Tue, 12 Oct 1999 11:27:40 -0500


Add a TextIndex to your catalog that looks for "bodycopy_html" as the name
of the attribute to index, and set up your search/results pages accordingly.

At 12:17 PM 10/12/99 +0000, Kam Cheung wrote:
>I created a ZClass which is inherited from CatalogAware & Object Manager, 
>it's structure is like this:
>
>MyClass
>    bodycopy_html
>    index_html
>
>    Propertysheets
>        Basic
>            ClassName
>
>
>Now, if I find this object using a ZCatalog object, bodycopy_html will
>become a separate object. This is not what I want, I want the content of
>bodycopy_html to be indexed as part of a MyClass object. What I am doing now
>is to hack it on the report, link the result to the MyClass object instead
>of the bodycopy_html whenever data_record_id_'s parent is a MyClass object.
>However, is there a better way of handling this? What a ZCatalog looks for
>when it indexes an object? Does it call a specific method on that object?
>Can I override it?