[Zope] updating ZCatalog

Andrei Cenja cnj@finsiel.ro
Wed, 23 May 2001 16:11:16 +0300


Hello !

I'm trying to use a catalog in order to enable search queries based on 
metadata of the objects (ExtFiles) in a directory. As users will add new 
objects, the catalog must be updated, which (the catalog updating) I 
figured must be done "by hand", that is, by telling the catalog to update 
itself in the same script which also does the uploading of the ExtFiles.

By looking in the ZopeBook I was able to catalog_object() each new ExtFile 
as it is uploaded, but that doesn't also update the indexes and the 
vocabulary. How can THAT be achieved ? I haven't noticed any such function 
in the API reference manual.

I tried to look in the source of the "advanced" page of the catalog manager 
and see what the "update catalog" button does, but it's a bit too tough for 
me :-)

Thanks !

andrei