[Zope] filename property of variable

Laurie Nason laurien@tiger.3dem.bioch.bcm.tmc.edu
Mon, 9 Jul 2001 11:27:58 -0500


There are no other form variables besides these on this form - and the name
is actually the name of a ZClass instance, in which I wish to create my
image file. One in each instance.

Laurie

-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
Thomas B. Passin
Sent: Monday, July 09, 2001 11:21 AM
To: Zope
Subject: Re: [Zope] filename property of variable


Can you have other form variables besides the upload boxes?  Can there be
more than one on a page with the same name?

Tom P

[Laurie Nason]
> I have a page of multiple upload file boxes - the name of each one is
> generated on the fly so I don't know what the name will be when I get to
the
> dtml method to upload the images. I also don't know how many of them will
> actually have an image to upload. Hence, after much trawling through
> previous posts I found the following code to check to see if the user has
> actually selected a file to upload:
>
>      <dtml-if "newimage.filename">
>
> How do I use this with 'sequence-item'?
>
> I have tried:
>
>      <dtml-if "_['sequence-item'].filename">
>
> Any ideas?
>



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