[Zope] dtml-in and objectValues()
Jerome Alet
alet@unice.fr
Wed, 2 May 2001 11:16:11 +0200 (MET DST)
On Wed, 2 May 2001, Kai Hofmann wrote:
> > <UNTESTED>
> > <dtml-in "subdir.objectValues()">
> > <dtml-if "_['sequence-item'].getId()[-3:] == '_de'">
> > do_something
> > </dtml-if>
> > </dtml-in>
> > </UNTESTED>
>
> _['sequence-item'].getId() results in an error:
> "string object has no attribute getId"
Sorry, but this was said as being UNTESTED.
the following works:
<dtml-if "getId()[-3:] == '_de'">
do_something
</dtml-if>
bye,
Jerome Alet