[Zope-dev] Question about using CatalogAware
Amos Latteier
amos@aracnet.com
Wed, 04 Aug 1999 16:02:50 -0700
At 06:23 PM 8/4/99 -0400, Kevin Dangoor wrote:
...
> <STRONG>Error Type: AttributeError</STRONG><BR>
> <STRONG>Error Value: no __call__ method defined</STRONG><BR>
>
>>From the traceback:
> (Object: _[default_catalog](searchfor))
> File <string>, line 0, in ?
>AttributeError: (see above)
>If I replace "_[default_catalog](searchfor)" with "Catalog(searchfor)", the
>method works.
_[spam] gives you a *rendered* spam (yum!). _.getitem(spam,0) gives you
the raw spam without rendering it.
Try "_.getitem(default_catalog,0)(seachfor)"
-Amos
P.S. This is kind of documented in the DTML Guide,
http://www.zope.org/Documentation/Guides/DTML/DTML-HTML/DTML.4.3.2.3.html