[Zope] showing images

Ebbe Kvist sm0epm@spray.se
Fri, 25 Oct 2002 10:17:23 GMT+1


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--=_NextPart_Lycos_0314561035533843_ID
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all,

I am starting to figure out things about Zope. And to this problem I have not yet figured out an answer:
I have a lot of metadata about photos stored in a MySQL database. I have developed a Zope interface to show the metadata per picture using Zope and it works fine. I store small thumbnails in Zope for some, but not all the pictures. The thumbnail files have the same id as the MySQL variable idnumber which I show on the screen together with other metadata.
My problem is that I cant figure out how to 
 
a/ test if there is a thumbnail file for the idnumber variable and
b/ if so - show it together with the metadata - and if not - show a dummy picture instead

I have tried many things but it seems impossible to have Zope test if the contents of the <dtml-var idnumber>  variable can be used to check the exsitence of a possible thumbnail file with the same name.

Is there a solution?

Best regards from sunny but rather cold Stockholm,
Ebbe


_____________________________________________________________
H=E4r b=F6rjar internet!
Skaffa gratis e-mail och gratis internet p=E5 Spray http://www.spray.se



--=_NextPart_Lycos_0314561035533843_ID--