[Zope] dtml-in statement with mysql

Steve Lenti slenti at abqpubco.com
Fri Sep 19 13:49:54 EDT 2003


On Fri, Sep 19, 2003 at 01:28:31PM -0400, Chris Kratz wrote:
> Hello Steve,
> 
> One thing you can do, is place all the code that you want to run inside the 
> dtml-in statements into a separate dtml-method.  Then you can do the 
> following...
> 
> <dtml-if expr="search_method == '1'">
>  <dtml-in sql_1>
>   <dtml-var searchList>
>  </dtml-in>
> <dtml-elif expr="search_method == '2'">
>  <dtml-in sql_2>
>     <dtml-var searchList>
>  </dtml-in>
> </dtml-if>
> 
> where searchList is the dtml that displays the results.
> 

thanks very much for your suggestions.  The first 1 worked perfectly and
was exactly what I was looking for.

--STEVE

You don't become a failure until you're satisfied with being one.



More information about the Zope mailing list