[Zope] dtml-in ???

M. Adam Kendall mak@kha0s.org
Tue, 02 May 2000 10:10:17 -0400 (EDT)


On 02-May-2000 Pierre Rougier wrote:
> <dtml-in "objectItems('DTML Method')" sort=id>
>       <dtml-if "id == index_html">
>               <dtml-var "read_raw()" html_quote>
>       </dtml-if>
>  </dtml-in>
> 
> As u can see, I want to test if the methods I extract from the methods
> that exists have special names, to treat it in different manners.
> Problems is that the  <dtml-if "id == index_html"> test does not seem to
> work.... It can sound a very simple syntax question, but how can I test
> the method name???

Using <dtml-if "id = 'index_html'"> should work.  Have to make sure you are
comparing the id to a string value.

--
M. Adam Kendall         |       Got Linux?
Internetworking &       |         We do.
 Security Architect     |
akendall@devis.com      |  http://www.devis.com