[Zope] Some objects cannot be deleted programmatically?
Jaroslav Lukesh
lsh@wo.cz
Mon, 7 Jul 2003 11:42:14 +0200
> Odes=EDlatel: Dieter Maurer <dieter@handshake.de>
>=20
> You call the "manage_delObjects" on the object to be deleted and
> not its container.
>=20
Dear Dieter,
many thanks for your valuable support. Here are piece of fully functional
code for all who will need this kind of cleaning.
Sincerelly, J. Lukesh
DTML Method "del_link":
<dtml-in "objectValues([ 'Accelerated HTTP Cache Manager',
'User Folder',
'LinkedFolder',
'PortableHole',
'Folder',
'ZipFolder' ])" skip_unauthorized>
<dtml-let container=3Dthis>
<dtml-in "objectValues(['Accelerated HTTP Cache Manager',
'User Folder',
'LinkedFolder',
'PortableHole' ])">
DEL: <dtml-var absolute_url>
<dtml-call "container.manage_delObjects([getId()])">
</dtml-in>
</dtml-let>
<dtml-if "(meta_type=3D=3D'Folder') or (meta_type=3D=3D'ZipFolder')"
><dtml-with sequence-item
><dtml-var del_link
></dtml-with
><dtml-else
></dtml-if
></dtml-in>