Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

dtml-in

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


cybercruiserz at yahoo

Apr 1, 2009, 8:20 PM

Post #1 of 3 (948 views)
Permalink
dtml-in

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>



_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


lists at zopyx

Apr 1, 2009, 9:56 PM

Post #2 of 3 (865 views)
Permalink
Re: dtml-in [In reply to]

-----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-----
Attachments: lists.vcf (0.31 KB)


cybercruiserz at yahoo

Apr 2, 2009, 9:47 AM

Post #3 of 3 (863 views)
Permalink
Re: dtml-in [In reply to]

that works, thanks.

--- On Wed, 4/1/09, Andreas Jung <lists [at] zopyx> wrote:
From: Andreas Jung <lists [at] zopyx>
Subject: Re: [Zope] dtml-in
To: cybercruiserz [at] yahoo
Cc: zope [at] zope
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-----

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.