that works, thanks.
--- On Wed, 4/1/09, Andreas Jung <lists@zopyx.com> wrote:
From: Andreas Jung <lists@zopyx.com> Subject: Re: [Zope] dtml-in To: cybercruiserz@yahoo.com Cc: zope@zope.org Date: Wednesday, April 1, 2009, 10:56 PM
-----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-----
|