When I created my property sheet (called editForm, boilerplate HTML form inside of a table that was patterned after the Link_addForm method), I set the ACTION of the form to edit, this DTML method of Link:
<dtml-call "propertysheets.propsheet.manage_changeProperties(REQUEST)"> <dtml-call "manage_renameObject(_.None,REQUEST['oldid'],REQUEST['id'])"> <dtml-call "RESPONSE.redirect(PARENTS[1].absolute_url()+'/manage_main')">
What's the correct incantation to rename a ZClass instance from within the instance? I get an error message "Object with id (id of Link) already exists"
Ok..Murphy's Law of Mailing Lists applies here: No matter how hard you try to solve your problem, you find the solution five minutes after you ask the list: The magic version of edit: <dtml-call "propertysheets.propsheet.manage_changeProperties(REQUEST)"> <dtml-if "REQUEST['oldid'] != REQUEST['id']"> <dtml-call "manage_renameObject(REQUEST['oldid'],REQUEST['id'],REQUEST)"> </dtml-if> <dtml-call "RESPONSE.redirect(PARENTS[1].absolute_url()+'/manage_main')"> All of my other questions still apply -- Stephen Pitts smpitts@midsouth.rr.com webmaster - http://www.mschess.org