4 Aug
1999
4 Aug
'99
11:02 p.m.
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