[Zope] CatalogAware & Catalog.

Bak @ kedai kedai@kedai.com.my
Sat, 24 Mar 2001 00:49:53 +0800


>Casey, thanks. That means it must always be "Catalog" if I want to use
>CatalogAware? Therefore every time I search a new document

it doesn't have to be.  you can name your catalog anything, as long as you
remember to reindex it properly

check out
http://www.zope.org/Members/kedai/BuildSimpleZClass

it's not perfect, but it's there.  comments welcome

which inherit
>CatalogAware as the base class, I will find this new item from searching?
>
> pattreeya.
>
>>
>> CatalogAware looks for a ZCatalog named "Catalog" (with a capital "C").
>> Make sure the id of your ZCatalog is set to "Catalog" and it is
>> acquirable by the CatalogAware objects. Therefore it needs to be at or
>> above the CatalogAware objects in your Zope hierarchy.
>>
>> A caveat about CatalogAware, it only catalogs objects when the are
>> created, deleted or moved. When you change their properties they are not
>> automatically recataloged. To recatalog a CatalogAware object, call its
>> reindex_object() method.
>
>_______________________________________________
>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 )
>