[Zope] Still having problems with manage_delObjects

Phil Grove phil.grove@flg21.com
Mon, 21 Jun 1999 10:31:59 +0100


Hi all,

I know i have posted a few mails about this, and have had some very good
replies, but i am still having problems deleting folders.

Here is the breakdown of what i am trying to do:

I am using the tree command to show a directory structure that is
dynamically built by the user adding folders and documents. The user has
the choice to add folders and documents and also delete them. Within the
delete function that i am using, what i am attempting to do is send through
the id of the folder i wish to delete and then, using a parent[+1] to jump
back a directory, delete that folder. The code i am using is as follows:

<!--#var standard_html_header-->

<!--#in "PARENTS[+1].objectValues(['Folder'])"-->

<!--#call "REQUEST.set('toDelete', ids)"-->

<!--#if "id == toDelete"-->

 <!--#call "manage_delObjects(id)"--> 

 Has been deleted..

<!--#/if-->

<!--#/in-->

<!--#var standard_html_footer-->

An ideas on why this is not working. Maybe, it is because the delete
function is within the folder itself, i am not sure. I can use the
manage_delObjects fine as a link but not as a call.

Thanks in advance for any assistance,

P.