RE: [Zope] ZCatalogAware: changing catalog name
I just recently ran into the same issue... You can create a Python script in the methods directory of your zclass that sets the default catalog to a different ID... Example: # Example code: # Edit the property sheet and reindex. context.manage_editCataloger('TheNameOfYourCatalog') Hope this helps. Rob -----Original Message----- From: Karsten Kraus [mailto:Karsten.Kraus@swr3.de] Sent: Thursday, August 23, 2001 3:17 PM To: zope@zope.org Subject: [Zope] ZCatalogAware: changing catalog name Hi there, I used the Chapter about "Automatic Cataloging" as base for my own catalog-aware Product. It works as expected, if the ZCatalog has the Id 'Catalog', but doesn't work if I give it an other id (e.q. TestCatalog). Where do can I change the id used for the ZCatalog in my Product/ZClass? TIA Karsten _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (1)
-
Rob Foster