[Zope] reindex_object() in a python script??

Dieter Maurer dieter@handshake.de
Sat, 6 Apr 2002 14:05:32 +0200


Mark A. Lilly writes:
 > I create an Object instance in a python script, and then change two of the
 > properties. (see below).  Even though i'm calling reindex_object, after the
 > Task object is added to the Folder, it is not in the ZCatalog TaskCatalog
 > until i manually add it. The Task's ZClass (task) is CatalogAware.

A catalog aware instance needs to find the catalog to index in.
It uses a fixed name, default "Catalog", to get it via acquisition.

You need to change the catalog name, in order to index in a
different catalog.

There is a method to change this catalog id. However, I do not
know its name (without looking, which you can do yourself).


Dieter