[Zope] Deleting Objects with DTML

Randall F. Kern randy@spoke.net
Thu, 15 Mar 2001 06:45:05 -0800


It's a method of ObjectManager:

def manage_delObjects(self, ids=3D[], REQUEST=3DNone):

so:
<dtml-call expr=3D"manage_delObjects(['firstid', 'secondid'])">

Be sure to call it on the folder you want to remove the objects from, so
either use a <dtml-with myFolder>, or change the expr to
"myFolder.manage_delObjects(...)".

-Randy

> -----Original Message-----
> From: Steffen Bergmann [mailto:steffen.bergmann@friatec.de]
> Sent: Thursday, March 15, 2001 6:41 AM
> To: zope@zope.org
> Subject: [Zope] Deleting Objects with DTML
>=20
>=20
> Does anyone know how to delete a ZOPE Object within a DTML Method.
> Something like <dtml-call "manage_delObject(id)"? I didn't found
> anything in the API. Or is it better  directly done with a Python
> Skript?
>=20
> Steffen
>=20
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -=20
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>=20