[Zope] How to get a catalogware object's ZCatalog

Nico Grubert nicogrubert@web.de
Fri, 6 Jun 2003 13:09:27 +0200


> Such an object should have an attribute named default_catalog.
> 
> So, getattr(myobj,myobj.default_catalog) should give you the catalog 
> object via acquisition.
> 
> HTH,
> oliver


hi oliver, 

I already tried that method "default_catalog" (defined in the 'CatalogAware' class) but it returns "Catalog" which can't be right, because 'myobj' is cataloged in a ZCatalog called "MyCatalog".

-nico

____________________________________________________________________________
Jetzt bei WEB.DE FreeMail anmelden = 1qm Regenwald schuetzen! Helfen
Sie mit! Nutzen Sie den Serien-Testsieger. http://user.web.de/Regenwald