[Zope] Delete from edit form
Joshua Brauer
joshua@brauer.org
Mon, 11 Oct 1999 13:05:37 -0600
I'm looking for a way to have a form that allows editing of the properties of an item (ala KM's Net News etc.), but I also want to be able to delete the item from the edit form.... SO I tried this code:
<FORM action=manage_delObjects method=post>
<INPUT TYPE=hidden name="ids:list" value="<dtml-var id>">
<input type=submit value="Delete Item"> </FORM>
which doesn't work because the item is not found.... understandable as we're at item/edit in the case of this form, so I changed it to:
<FORM action=manage_delObjects method=post>
<INPUT TYPE=hidden name="ids:list" value="../<dtml-var id>">
<input type=submit value="Delete Item"> </FORM>
no go here either... My Qeustion is:
Is it possible to have a form (in a Zclass instance) that deletes the instance of the Zclass and if so, how!
Josh
# # #
_____________________________________________
Joshua Brauer Box 915
http://www.brauer.org Fort Collins, CO 80522
Fax: (419) 793-4120
_____________________________________________
In flying I have learned that carelessness and overconfidence are
usually far more dangerous than deliberately accepted risks.
-- Wilbur Wright in a letter to his father, September 1900
_____________________________________________________