[Zope] Test if document does exist

Dieter Maurer dieter@handshake.de
Fri, 23 Mar 2001 20:12:37 +0100 (CET)


Marc Fischer writes:
 > How can I test with an dtml-if, if a special document does exist?
You cannot test if a special document exists but you can test,
if a name is defined in a namespace (this may be a document, property
or just a name bound to a volatile object):

   <dtml-if "_.has_key(name_of_your_object)">
     ....
   </dtml-if>



Dieter