[Zope] ImageTag and dtml-try does not work!

Jaroslav Lukesh lsh@wo.cz
Wed, 20 Nov 2002 15:44:44 -0000


Hi, 

I was foound that this code always does pass and does not run dtml-except

Did somebody knows what can I do? Note that image name is get from
expression in dtml-in (dtml-if does not work optimally when I was develop 

If image with given filename does not exist, it still want to display
thumbnail, which is broken image.


<dtml-in expr="objectValues('DTML Document')" sort=id skip_unauthorized>
<dtml-try>
<a href="<dtml-var expr="_['id'] + '.jpg'">">

	critical part of code:

<img src="<dtml-var expr="_['id'] + '.jpg'">/thumb?width=180&height=300"
aligh="right">

</a>
<dtml-except>
</dtml-try>
<dtml-var sequence-item fmt=structured-text></span><p>
</dtml-in>


Many thanks for your help,

J. Lukesh