[Zope] ZCatalog and custom Product

Chris Withers chris at simplistix.co.uk
Wed Apr 20 05:23:57 EDT 2005


Milos Prudek wrote:
> The above code catalogs the instance into Catalog_A. Okay, but....
> 
>     self.manage_editCataloger("Catalog_A")
>     self.index_object()
>     self.manage_editCataloger("Catalog_B")
>     self.index_object()
>     self.manage_editCataloger("Catalog_C")
>     self.index_object()
> ... the above code catalogs the instance into Catalog_C, but not into 
> Catalog_A and not into Catalog_B. Does anyone know why Catalog_A and 
> Catalog_B are ignored?

Using CatalogPathAware with multiple catalogs is asking for trouble, 
since it's onyl designed to support one catalog ;-)

I'd suggest not using it in your case. Just write your own index_object 
method that does what you really want it to...

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope mailing list