Thanks everyone for their help. I decided to do the looping in the Python Controller Script instead of dtml...much easier and faster to put it together!<br><br>Mark<br><br><div class="gmail_quote">On Tue, Aug 24, 2010 at 9:48 AM, Garry Saddington <span dir="ltr">&lt;<a href="mailto:garry@schoolteachers.co.uk">garry@schoolteachers.co.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Garry Saddington wrote:<br>
&gt; Andreas Jung wrote:<br>
&gt;&gt; -----BEGIN PGP SIGNED MESSAGE-----<br>
&gt;&gt; Hash: SHA1<br>
&gt;&gt;<br>
&gt;&gt; I would assume that you can use DTML-IN for looping and generating<br>
&gt;&gt; multiple SQL statements of the same kind. You have to ensure that<br>
&gt;&gt; the statements having a proper delimiter (there was something in DTML?!<br>
&gt;&gt; DTML-SQLDELIMITER?...no idea, you need to checks the docs of this<br>
&gt;&gt; ancient technology).<br>
&gt;<br>
</div>oops:<br>
&lt;dtml-var sql_delimiter&gt;<br>
code in snippets is correct though.<br>
sorry<br>
<font color="#888888">Garry<br>
</font><div class="im"><br>
&gt; Andreas is correct but the delimiter is &lt;dtml-sql_delimiter&gt;.<br>
&gt; Probably better to do this in python script, but here are some code<br>
&gt; snippets to help you:<br>
&gt; In the form:<br>
&gt;<br>
&gt; &lt;select name=&quot;seasons:list&quot; multiple=&quot;multiple&quot;&gt;<br>
&gt;<br>
&gt; In the ZSQL method:<br>
&gt;<br>
&gt; &lt;dtml-in seasons&gt;<br>
&gt; &lt;dtml-var sql_delimiter&gt;<br>
&gt;<br>
&gt; insert statement goes here, don&#39;t forget the ; at the end.<br>
&gt;<br>
&gt; &lt;/dtml-in&gt;<br>
&gt;<br>
&gt; Hope this is of some help, others may want to chip in with other<br>
&gt; suggestions, such as doing the same in python. Anyway good luck.<br>
&gt; Garry<br>
</div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; Zope-DB mailing list<br>
&gt; <a href="mailto:Zope-DB@zope.org">Zope-DB@zope.org</a><br>
&gt; <a href="https://mail.zope.org/mailman/listinfo/zope-db" target="_blank">https://mail.zope.org/mailman/listinfo/zope-db</a><br>
&gt;<br>
<br>
_______________________________________________<br>
Zope-DB mailing list<br>
<a href="mailto:Zope-DB@zope.org">Zope-DB@zope.org</a><br>
<a href="https://mail.zope.org/mailman/listinfo/zope-db" target="_blank">https://mail.zope.org/mailman/listinfo/zope-db</a><br>
</div></div></blockquote></div><br>