<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.8">
</HEAD>
<BODY>
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373"><I>&gt; What I need is something like this:
&gt;
&gt; &lt;div tal:define=&quot;sqlRows 
&gt; nocall:here/ZSQLTerritoryList(parent_id=parent_id)&quot;&gt;
&gt; &nbsp; &lt;select name=&quot;country_list&quot;&gt;
&gt; &nbsp; &lt;option value=&quot;&quot;&gt;ANY&lt;/option&gt;
&gt; &nbsp; &lt;option tal:repeat=&quot;sqlRow sqlRows&quot; ...
&gt; &nbsp; etc...
&gt;
&gt; but obviously the first line of code doesn't work.&nbsp; How else are 
&gt; variables passed do zsql methods from page templates?

        What happens if you change the call to:

&lt;div tal:define=&quot;sqlRows 
python:here.ZSQLTerritoryList(parent_id=parent_id)&quot;&gt;

</I></FONT></PRE>
</BLOCKQUOTE>
<BR>
Thanks.&nbsp; But then why does zope go to the trouble of having a &quot;nocall:&quot;?&nbsp; Would multiple operations on subsequent sqlRows variables not result in multiple queries in the above python implementation?&nbsp; If not, then I'm safe and it's exactly what I need :-)<BR>
<BR>
<BR>
<BR>
<PRE><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>-- 

Nick Bower Ph.D.
Cybersecurity Sector
Institute for the Protection and Security of the Citizen
European Commission Joint Research Centre

TP 267
Via Enrico Fermi 1
Ispra 
21020 VA
Italy

nicholas.bower@jrc.it
tel:+39 0332786679
fax:+39 0332789576
</PRE>
</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>