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

Jaroslav Lukesh lsh@wo.cz
Fri, 4 Jul 2003 10:45:39 +0200


: Odes=EDlatel: Andy McKay <andy@agmweb.ca>
: Please consider using Python its much easier.

not for me. I still does not finist python learning.

:  >   <dtml-if "objectValues()=3D=3D'Image'">
:=20
: Whats this meant to be? objectValues is a list of all the objects in a=20
: folder. If you are trying test the objects type use <dtml-if "meta_type=
=20
: =3D=3D 'Image'">

Thanks for kick, functional code is below. Look at interesting syntax for
manage_delobjects.

<dtml-in "objectValues(['Folder', 'ZipFolder', 'Image' ])"
skip_unauthorized>
  <dtml-if "meta_type =3D=3D '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>

Best Regards, JL.