[Zope] filename property of variable

Laurie Nason laurien@tiger.3dem.bioch.bcm.tmc.edu
Mon, 9 Jul 2001 10:38:34 -0500


Hi guys,
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?

Laurie Nason
Baylor College of Medicine
Houston TX 77030