[Zope] How to delete image from DTML-CALL?

Jaroslav Lukesh lsh@wo.cz
Thu, 3 Jul 2003 19:18:12 +0200


Hi all,

I want to delete all images recursively from my web tree by using this
recursive DTML Method delimage (errorfull):

<dtml-in "objectItems(['Folder', 'ZipFolder', 'Image' ])"
skip_unauthorized>
  <dtml-if "objectValues()=='Image'">
    DEL: <dtml-var absolute_url><br>
    <dtml-call "manage_delObjects(id)">
  <dtml-else>
    <dtml-with sequence-item>
      <dtml-var delimage>
    </dtml-with>
  </dtml-if>
</dtml-in>


Main part:

<dtml-in "objectItems(['Folder', 'ZipFolder', 'Image' ])"
skip_unauthorized>
    DEL: <dtml-var absolute_url><br>
    <dtml-call "manage_delObjects(id)">
</dtml-in>


Main part gives me errors and delete nothing. I was try many ways to delete
objects, but no success.

And checking for image <dtml-if "objectValues()=='Image'"> does not work
too.

Would you like to correct my errors, please?

Many thanks,

             Jaroslav Lukesh, K-net