6 Apr
2002
6 Apr
'02
12:05 p.m.
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