[Zope] dtml-in

Bobby cybercruiserz at yahoo.com
Thu Apr 2 12:47:54 EDT 2009

that works, thanks. 

--- On Wed, 4/1/09, Andreas Jung <lists at zopyx.com> wrote:
From: Andreas Jung <lists at zopyx.com>
Subject: Re: [Zope] dtml-in
To: cybercruiserz at yahoo.com
Cc: zope at zope.org
Date: Wednesday, April 1, 2009, 10:56 PM

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
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20090402/54fc0329/attachment.html 

More information about the Zope mailing list