[Zope-dev] Easy SQL question

Steve Alexander steve@cat-box.net
Mon, 08 Jan 2001 18:38:02 +0000


Keith.Larson@Spatial.Com wrote:

> 
> I believe that this is close
> 
> <dtml-call "REQUEST.set('phrase_id', foo)">
> 
>            <dtml-in expr="langtest()">
>               <dtml-var expr="_['sequence-item'].renderText">
>            </dtml-in>
> 
> but is foo supposed to be my var of whatever I want passed ?
> 
>  how do I pass the variable for phrase ID ( via a variable and changed per
> request ) to the language test and display the results so the user never
> knows .
> 
> I think I am close just missing the obvious I think anyhelp ?

You need to explicitly pass in arguments to a ZSQL Method as keyword 
arguments. So, the following will probably work.

 > <dtml-in expr="langtest(phrase_id=phrase_id)">
 >   <dtml-var expr="_['sequence-item'].renderText">
 > </dtml-in>

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net