[Zope] Zclasses derived from ZCatalog

Martijn Pieters mj@antraciet.nl
Wed, 03 Nov 1999 14:46:12 +0100

At 14:22 03/11/99 , Tres Seaver wrote:
>Add a DTML Method named "Catalog" to the ZClass derived from ObjectManager and
>ZCatalog.  its body should be:
>   <dtml-return "this()">
>The CatalogAware ZClass instances search up the acquisition tree for on object
>named Catalog to register with -- they find the method as an attribute of 
>container, and use it instead.

I like this one!

>I haven't yet figured out how to use the Catalog-method inside other DTML, 
>   <dtml-in "Catalog( meta_type='BarBaz' )">
>     ...
>   </dtml-in>
>doesn't work.  I'll think on it some more.

   <dtml-in "_['Catalog'](meta_type='BarBaz')">

will work, but not with a real Catalog object, only your DTML trickery.

Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-7502100 Fax: +31-35-7502111
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149