[Zope] ids NameError
Andrew Veitch
andrew at logicalprogression.net
Tue Aug 26 17:17:44 EDT 2003
Rob -
The problem isn't in the form, it's in the 'delete' method. This needs to
check if 'ids' exists.
If you post the 'delete' method you'll get some help on that.
Andrew
--
Logical Progression Ltd, 20 Forth Street, Edinburgh EH1 3LH, UK
Tel: +44 (0)131 550 3733 Web: http://www.logicalprogression.net/
> From: <grissom at qwickconnect.net>
> Date: Tue, 26 Aug 2003 07:00:12 -0700
> To: zope at zope.org
> Subject: [Zope] ids NameError
>
> All,
>
> After looking through the list for the last hour I could
> not find an answer to the following problem.
>
> I have a dtml form that itterates over the content of a
> folder and displays a checkbox next to each of the files.
> The form allows a user to select items to be deleted. If a
> user does not select a check box I get the folloewing
> error:
>
> Error Type: NameError
> Error Value: global name 'ids' is not defined
>
> This only happens when a checkbox has not been selected.
>
> here is the form calling a method:
>
> <FORM ACTION="delete" method="POST">
> <dtml-in "objectValues(['File'])" sort=id>
> <INPUT TYPE="CHECKBOX" NAME="ids:list" VALUE="<dtml-var
> id>"> <dtml-var id><p>
> </dtml-in>
> <INPUT TYPE="SUBMIT">
> </form>
>
> Regards,
>
> Rob Grissom
>
> _______________________________________________
> Zope maillist - Zope at zope.org
> 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 )
More information about the Zope
mailing list