[Zope] Rendering files with exception
Jaroslav Lukesh
lsh@wo.cz
Thu, 4 Jul 2002 13:54:30 +0200
| Odes=EDlatel: Dieter Maurer <dieter@handshake.de>
| It seems that you would like to render "index.htm" if it exists
| in the current folder and do something else, otherwise.
Yes, but it is in my initial question. I am sorry, but I need to learn
english more (I know low word count).
=20
| The following code is not completely safe but may be sufficient
| for your purposes:
|=20
| <dtml-if "_.hasattr(aq_explicit,'index.htm')">
| <dtml-var index.htm>
| <dtml-else>....
| </dtml-if>
Absolutelly sufficient and works :)
Why it is not completely safe?
=20
Many thanks,
Jaroslav Lukesh