[Zope] Cataloging and uncataloging...

Casey Duncan cduncan@kaivo.com
Tue, 17 Apr 2001 09:10:56 -0600


After Dark wrote:
> 
> Hi, I am trying to catalog and uncatalog objects into a
> ZCatalog, but when I uncatalog/catalog I have to do it twice
> to work.
> Do I have to index or something like?
> 
> I`m just doing this: <dtml-call
> "mycatalog.uncatalog_object(xobject)">
> 
> Thanks.
> ________________________________________________

If you create a ZClass with a base class of CatalogAware, it will
automatically catalog and uncatalog itself when objects of the class are
created and deleted. You also get several method on the object to index,
reindex, unindex, etc. 

See this aged, but still helpful how-to:

http://www.zope.org/Members/AlexR/CatalogAware 

-- 
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>