[Zope] string find

R. David Murray bitz@bitdance.com
Tue, 9 May 2000 14:46:58 -0400 (EDT)


On Sun, 7 May 2000, Markus Hochreiter wrote:
> <dtml-in Catalog>
>     <dtml-if "_.string.find('fam',<dtml-var name>"> this is not correct,
> why?
>        <dtml-var name>
>    </dtml-if>
> </dtml-in>

Because inside the quotes you are in a python context and need to
use pure python syntax, no mixed in dtml.  Try (untested):

<dtml-if "_.string.find('fam',name)">

--RDM