[Zope] Deleting ZClass Instances via DTML

Thomas Weiner weiner@tu-harburg.de
Mon, 21 Feb 2000 15:58:09 +0100


Nico Grubert schrieb:
> 
> Hello,
> 
> is there a way deleting a ZClass instance via dtml ?
> syntax like this:
> 
> <form action name="del">
>  ??? delObj <dtml-var id> ???

<input type=hidden name="del_id" value="id_of_ZClass_instance">

To prevent confusion with the use of id in dtml, I would'nt choose 'id'
as a variable name in forms or requests.

>   <input type=submit value="delete">
> </form

in "del":
<dtml-call "manage_delObjects(ids=[del_id])">

> id is the id of the object I want to delete.

hth,
Thomas

-- 
fon: ++49 (0)40 42878 3781
fax: ++49 (0)40 42878 2728