<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">that works, thanks. <br><br>--- On <b>Wed, 4/1/09, Andreas Jung <i>&lt;lists@zopyx.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Andreas Jung &lt;lists@zopyx.com&gt;<br>Subject: Re: [Zope] dtml-in<br>To: cybercruiserz@yahoo.com<br>Cc: zope@zope.org<br>Date: Wednesday, April 1, 2009, 10:56 PM<br><br><pre>-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>On 02.04.2009 5:20 Uhr, Bobby wrote:<br>&gt; Hi,<br>&gt; <br>&gt; I have a variable called "checkGroup" where its values are the<br>record ids that the user selected to be deleted. I have a deleteRecord method<br>that takes two arguements, one the sql table and the record id to be deleted.<br>The code below works fine except for when the user only select one item from the<br>checkGroup list, I get an error "string not allow
 in in". Any<br>suggestions of how I could fix this? Thanks.   <br>&gt; <br>&gt; &lt;dtml-in checkGroup&gt;<br>&gt;   &lt;dtml-let deleteItem=sequence-item&gt;<br>&gt;     &lt;dtml-var "deletedRecord(table,deleteItem)"&gt;<br>&gt;   &lt;/dtml-let&gt;<br>&gt; &lt;/dtml-in&gt;<br><br><br>Trible check that your form parameters use the ':list' directive within<br>the NAME attributes (check with the Zope Book (docs.zope.org).<br><br>- -akj<br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.9 (Darwin)<br>Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/<br><br>iEYEARECAAYFAknURWAACgkQCJIWIbr9KYyepgCcCv5yINX6+DenO0SayWY3HnML<br>Jo8AoOlY7ykeWzI/g2jPfklXUVy5wgIS<br>=L0Im<br>-----END PGP SIGNATURE-----<br></pre></blockquote></td></tr></table><br>