[Zope] FW: [Zope] Still having problems with manage_delObjects

Rik Hoekstra hoekstra@fswrul.fsw.leidenuniv.nl
Mon, 21 Jun 1999 11:57:57 +0200


-----Original Message-----
From: Rik Hoekstra [mailto:fghoekstra@cit10.wsd.leidenuniv.nl]
Sent: maandag 21 juni 1999 11:57
To: Phil Grove
Subject: RE: [Zope] Still having problems with manage_delObjects




> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Phil
> Grove
> Sent: maandag 21 juni 1999 11:32
> To: zope@zope.org
> Subject: [Zope] Still having problems with manage_delObjects
>
>
> 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)"-->

this suggests that there are more ids to delete. If so, you need to
reference like <!--#if "id in toDelete"-->


>
> <!--#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.
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (For developer-specific issues, use the companion list,
> zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
>