[Zope] dtml-in

Andreas Jung lists at zopyx.com
Thu Apr 2 00:56:00 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02.04.2009 5:20 Uhr, Bobby wrote:
> Hi,
> 
> I have a variable called "checkGroup" where its values are the record ids that the user selected to be deleted. I have a deleteRecord method that takes two arguements, one the sql table and the record id to be deleted. The code below works fine except for when the user only select one item from the checkGroup list, I get an error "string not allow in in". Any suggestions of how I could fix this? Thanks.   
> 
> <dtml-in checkGroup>
>   <dtml-let deleteItem=sequence-item>
>     <dtml-var "deletedRecord(table,deleteItem)">
>   </dtml-let>
> </dtml-in>


Trible check that your form parameters use the ':list' directive within
the NAME attributes (check with the Zope Book (docs.zope.org).

- -akj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAknURWAACgkQCJIWIbr9KYyepgCcCv5yINX6+DenO0SayWY3HnML
Jo8AoOlY7ykeWzI/g2jPfklXUVy5wgIS
=L0Im
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20090402/c997a940/attachment.vcf 


More information about the Zope mailing list