<div id="RTEContent">&nbsp;Hello, I am new to Zope and DTML.<br> I am trying to use a python script to call a Z SQL method.&nbsp; The python script also has a list that &lt;dtml-in inside the ZSQL method interates over. so my python script:<br> -----python script<br> words = ['one', 'two']<br> context.REQUEST.set('wordlist', wordlist)<br> rs = context.myzsqlmethod()<br> return rs[0,2]<br> -----z sql script:<br> SELECT * FROM table<br> WHERE <br> &lt;dtml-in words&gt;<br> column1 LIKE ('&lt;dtml-var "'%'+sequence-item+'%'"&gt;' OR<br> column2 LIKE '&lt;dtml-var "'%'+sequence-item+'%'"&gt;') &lt;dtml-unless sequence-end&gt; AND &lt;/dtml-unless&gt; <br> &lt;/dtml-in&gt;<br> ---------------<br> But it doesn't want to, gives me..<br> <strong>Error Type: NameError</strong><br>    <strong>Error Value: name 'wordlist' is not defined<br> <br> </strong>I tried feeding the variable into the ZSQL arguments list, but i got something like "cannot concatenate a module with a str"<br> Can anyone
 please help me?<br> Thank you!<br> </div><p>
                <hr size=1>Yahoo! Shopping<br> 
Find Great Deals on Holiday Gifts at <a href="http://us.rd.yahoo.com/mail_us/footer/shopping/*http://shopping.yahoo.com/;_ylc=X3oDMTE2bzVzaHJtBF9TAzk1OTQ5NjM2BHNlYwNtYWlsdGFnBHNsawNob2xpZGF5LTA1 
">Yahoo! Shopping</a>