Allen Huang wrote at 2005-5-8 02:28 -0700:
>Here is the problem. I want to use a form to upload a file (with a specific 
>name) but first I want to check if another file with the same name already 
>exist in that folder. How do I use a if or dtml-if to solve this problem??

      <dtml-if expr="hasattr(the_folder.aq_inner.aq_explicit, the_id)">
        "the_id" exists
      <dtml-else>
        "the_id" does not exist
      </dtml-if>


-- 
Dieter
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to