[Zope-dev] Question about using CatalogAware

Anthony Baxter Anthony Baxter <anthony@interlink.com.au>
Thu, 05 Aug 1999 08:30:47 +1000


>>> "Kevin Dangoor" wrote
> A test DTML Method showed me that default_catalog = 'Catalog'. I have a
> ZCatalog called 'Catalog' in the Zope root. Since the ZClass is an Object
> Manager, the Method is one level down and will have to acquire the catalog.
> 
> If I replace "_[default_catalog](searchfor)" with "Catalog(searchfor)", the
> method works.

what about "_[_[default_catalog]](searchfor)" ?

If I understand your mail correctly, default_catalog is set to the _string_
'Catalog' - you need to look up the value of the string to get the object...

Anthony
-- 
Anthony Baxter     <anthony@interlink.com.au>   
It's never too late to have a happy childhood.