change Catalog name using self.reindex_object()
Hi, I use self.reindex_object() in a python script to update my Catalog when changing the objects content. The ZClass is catalog aware. Now I'd like to use not the default Catalog but a catalog called e.g. CatalogNews. Is there a possibility to reindex to CatalogNews or is just default Catalog possible? Thank you Marcus -- _____________________________________ (0> Marcus Schopen //\ P.O. Box 10 25 25 V_/_ 33525 Bielefeld, Germany ICQ#120991527 _____________________________________ Live as variously as possible
Yes, you can: You have to call manage_editCataloger(nameOfCatalog) before you do your self.reindex_object() on or about, Thursday, August 02, 2001, we have reason to believe that Marcus Schopen wrote something along the lines of : MS> Hi, MS> I use self.reindex_object() in a python script to update my Catalog when MS> changing the objects content. The ZClass is catalog aware. Now I'd like MS> to use not the default Catalog but a catalog called e.g. CatalogNews. MS> Is there a possibility to reindex to CatalogNews or is just default MS> Catalog possible? MS> Thank you MS> Marcus -- Geir Bækholt web-developer/zopatista geirh@funcom.com funcom oslo | webdev-team <!-- PGPid : 0x90B47B20 -->
Marcus Schopen writes:
I use self.reindex_object() in a python script to update my Catalog when changing the objects content. The ZClass is catalog aware. Now I'd like to use not the default Catalog but a catalog called e.g. CatalogNews. Is there a possibility to reindex to CatalogNews or is just default Catalog possible? You can use the method "manage_editCataloger" (defined in "Products.CatalogAwareness.CatalogAware") to modify the catalog used for indexing.
Dieter
participants (3)
-
Dieter Maurer -
Geir B�kholt -
Marcus Schopen