<HTML><BODY>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: tahoma; BACKGROUND-COLOR: white">
<DIV class=Fixed>
<DIV>Thanks for the answers, indeed the problem "was" outside the code.</DIV>

<DIV>&nbsp;</DIV>
<DIV>Thanks to all the community!!</DIV>
<DIV>and to [Alexis, <FONT color=#000000>Chris, Dieter, -aj(Andreas Jung), 
Y. (Yuri)]</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>Leticia<BR><BR>-----Original Message-----<BR>From: "SER.RI-TIC-Alexis 
Roda" &lt;alexis.roda@urv.net&gt;<BR>To: Leticia Larrosa 
&lt;LETICIA@tesla.cujae.edu.cu&gt;<BR>Date: Thu, 24 Mar 2005 09:49:38 
+0100<BR>Subject: Re: [Zope] manage_delObjects()<BR><BR>&gt; Leticia Larrosa 
wrote:<BR>&gt; &gt; Thanks for all the answer but I try, for example 
whit:<BR>&gt; &gt; <BR>&gt; &gt; folderToDelete = 'toDelete'<BR>&gt; &gt; 
container.manage_delObjects([folderToDelete])<BR>&gt; &gt; <BR>&gt; &gt; 
#or<BR>&gt; &gt; <BR>&gt; &gt; 
container.manage_delObjects([container[folderToDelete].getId()])<BR>&gt; 
&gt; <BR>&gt; &gt; and get the following error in both cases:<BR>&gt; &gt; 
Error Type: KeyError<BR>&gt; &gt; Error Value: toDelete<BR>&gt; <BR>&gt; 
Seems like the object you're trying to delete don't exists (inside <BR>&gt; 
container). In order to check this add (just before the <BR>&gt; 
container.manage_delObjects()) something like:<BR>&gt; <BR>&gt; raise 
'debug', container.objectIds()<BR>&gt; <BR>&gt; or<BR>&gt; <BR>&gt; raise 
'debug', container.absolute_url()<BR>&gt; <BR>&gt; just to ensure that 
container is really what it should be and<BR>&gt; 'toDelete' <BR>&gt; is a 
subitem.<BR>&gt; <BR>&gt; <BR>&gt; HTH<BR>&gt; -- <BR>&gt; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ////<BR>&gt; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp;(@ @)<BR>&gt; 
----------------------------oOO----(_)----OOo--------------------------<BR>
&gt; &lt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Ojo por ojo y 
el mundo acabara ciego<BR>&gt; /\ Alexis Roda - Universitat Rovira i Virgili 
- Reus, Tarragona (Spain)<BR>&gt; 
-----------------------------------------------------------------------<BR>
&gt; <BR>&gt; <BR>&gt; <BR></DIV></DIV></DIV>
</BODY></HTML>