<HTML><BODY>
<DIV>Thanks for all the answer but I try, for example whit:</DIV>
<DIV><BR>folderToDelete = 'toDelete'<BR>
container.manage_delObjects([folderToDelete])<BR><BR>#or<BR><BR>
container.manage_delObjects([container[folderToDelete].getId()])<BR><BR>and 
get the following error in both cases:<BR>Error Type: KeyError<BR>Error 
Value: toDelete<BR><BR>---------------------------<BR>and the "really" 
traceback is:<BR><BR>Traceback (innermost last):<BR>&nbsp;&nbsp;Module 
ZPublisher.Publish, line 101, in publish<BR>&nbsp;&nbsp;Module 
ZPublisher.mapply, line 88, in mapply<BR>&nbsp;&nbsp;Module 
ZPublisher.Publish, line 39, in call_object<BR>&nbsp;&nbsp;Module 
Shared.DC.Scripts.Bindings, line 306, in __call__<BR>&nbsp;&nbsp;Module 
Shared.DC.Scripts.Bindings, line 343, in _bindAndExec<BR>&nbsp;&nbsp;Module 
Products.PythonScripts.PythonScript, line 323, in _exec<BR>
&nbsp;&nbsp;Module None, line 27, in update<BR>&nbsp;&nbsp; - 
&lt;PythonScript at 
/approach/SiccApproach/Configuration/AuthenticationTypes/update&gt;<BR>
&nbsp;&nbsp; - Line 27<BR>&nbsp;&nbsp;Module Shared.DC.Scripts.Bindings, 
line 306, in __call__<BR>&nbsp;&nbsp;Module Shared.DC.Scripts.Bindings, line 
343, in _bindAndExec<BR>&nbsp;&nbsp;Module 
Products.PageTemplates.ZopePageTemplate, line 222, in _exec<BR>
&nbsp;&nbsp;Module Products.PageTemplates.PageTemplate, line 96, in 
pt_render<BR>&nbsp;&nbsp; - &lt;ZopePageTemplate at 
/approach/SiccApproach/Configuration/AuthenticationTypes/update_html&gt;<BR>
&nbsp;&nbsp;Module TAL.TALInterpreter, line 190, in __call__<BR>
&nbsp;&nbsp;Module TAL.TALInterpreter, line 234, in interpret<BR>
&nbsp;&nbsp;Module TAL.TALInterpreter, line 291, in do_startTag<BR>
&nbsp;&nbsp;Module TAL.TALInterpreter, line 357, in attrAction_tal<BR>
&nbsp;&nbsp;Module Products.PageTemplates.TALES, line 227, in 
evaluateText<BR>&nbsp;&nbsp;Module Products.PageTemplates.TALES, line 221, 
in evaluate<BR>&nbsp;&nbsp; - URL: 
/approach/SiccApproach/Configuration/AuthenticationTypes/update_html<BR>
&nbsp;&nbsp; - Line 56, Column 13<BR>&nbsp;&nbsp; - Expression: 
&lt;PythonExpr 
container[request['autType']][request['autType']+'AuthType'].function()&gt;<BR>
&nbsp;&nbsp; - Names:<BR>&nbsp;&nbsp; &nbsp; &nbsp;{'container': &lt;Folder 
instance at 430bbc80&gt;,<BR>&nbsp;&nbsp; &nbsp; &nbsp; 'context': 
&lt;Folder instance at 430bbc80&gt;,<BR>&nbsp;&nbsp; &nbsp; &nbsp; 
'default': &lt;Products.PageTemplates.TALES.Default instance at 
0x40aa4c6c&gt;,<BR>&nbsp;&nbsp; &nbsp; &nbsp; 'here': &lt;Folder instance at 
430bbc80&gt;,<BR>&nbsp;&nbsp; &nbsp; &nbsp; 'loop': &lt;SafeMapping instance 
at 40ac2f90&gt;,<BR>&nbsp;&nbsp; &nbsp; &nbsp; 'modules': 
&lt;Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 
0x40aa92ec&gt;,<BR>&nbsp;&nbsp; &nbsp; &nbsp; 'nothing': None,<BR>
&nbsp;&nbsp; &nbsp; &nbsp; 'options': {'args': (),<BR>&nbsp;&nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'msg': 'Usted ha tenido 
suerte, el servidor est\xe1 prendido y se ha podido modificar'},<BR>
&nbsp;&nbsp; &nbsp; &nbsp; 'repeat': &lt;SafeMapping instance at 
40ac2f90&gt;,<BR>&nbsp;&nbsp; &nbsp; &nbsp; 'request': &lt;HTTPRequest, 
URL=<A class=fixed 
href="http://ceismail.cujae.edu.cu/horde/util/go.php?url=http%3A%2F%2F172.16.13.105%3A9673%2Fapproach%2FSiccApproach%2FConfiguration%2FAuthenticationTypes%2Fupdate&amp;Horde=94e5350a58712b744da9c44601b6bfad" 
target=_blank>
http://172.16.13.105:9673/approach/SiccApproach/Configuration/AuthenticationTypes/update</A>
&gt;,<BR>&nbsp;&nbsp; &nbsp; &nbsp; 'root': &lt;application instance at 
43001b30&gt;,<BR>&nbsp;&nbsp; &nbsp; &nbsp; 'template': &lt;ZopePageTemplate 
at 
/approach/SiccApproach/Configuration/AuthenticationTypes/update_html&gt;,<BR>
&nbsp;&nbsp; &nbsp; &nbsp; 'traverse_subpath': [],<BR>&nbsp;&nbsp; &nbsp; 
&nbsp; 'user': leticia}<BR>&nbsp;&nbsp;Module 
Products.PageTemplates.ZRPythonExpr, line 47, in __call__<BR>&nbsp;&nbsp; - 
__traceback_info__: 
container[request['autType']][request['autType']+'AuthType'].function()<BR>
&nbsp;&nbsp;Module Python expression 
"container[request['autType']][request['autType']+'AuthType'].function()", 
line 1, in &lt;expression&gt;<BR>&nbsp;&nbsp;Module 
AccessControl.ZopeGuards, line 67, in guarded_getitem<BR>&nbsp;&nbsp;Module 
OFS.ObjectManager, line 663, in __getitem__<BR>KeyError: 'adminSiccDB34'<BR>
<BR><BR>-----Original Message-----<BR>From: Dieter Maurer 
&lt;dieter@handshake.de&gt;<BR>To: "Leticia Larrosa" 
&lt;LETICIA@tesla.cujae.edu.cu&gt;<BR>Cc: zope@zope.org<BR>Date: Wed, 23 Mar 
2005 20:16:15 +0100<BR>Subject: Re: [Zope] manage_delObjects()<BR><BR>&gt; 
Leticia Larrosa wrote at 2005-3-23 12:37 -0400:<BR>&gt; &gt; ...<BR>&gt; 
&gt;"manage_delObjects", example:<BR>&gt; &gt;folderToDelete = 
"exampleFolder"<BR>&gt; 
&gt;container.manage_delObjects([container[folderToDelete]])<BR>&gt; 
&gt;#or<BR>&gt; &gt;container.manage_delObjects([getattr(container, 
folderToDelete)])<BR>&gt; &gt;----------------------------<BR>&gt; &gt;I get 
the following error:<BR>&gt; &gt;Error Type: AttributeError<BR>&gt; 
&gt;Error Value: __getslice__<BR>&gt; <BR>&gt; You pass in the object itself 
-- but you should pass its id.<BR>&gt; <BR>&gt; Thus, the following will 
probably work:<BR>&gt; <BR>&gt; &nbsp; &nbsp; &nbsp; 
container.manage_delObjects([folderToDelete])<BR>&gt; <BR>&gt; -- <BR>&gt; 
Dieter<BR>&gt; _______________________________________________<BR>&gt; Zope 
maillist &nbsp;- &nbsp;Zope@zope.org<BR>&gt; 
http://mail.zope.org/mailman/listinfo/zope<BR>&gt; ** &nbsp; No cross posts 
or HTML encoding! &nbsp;**<BR>&gt; (Related lists - <BR>&gt; 
&nbsp;http://mail.zope.org/mailman/listinfo/zope-announce<BR>&gt; 
&nbsp;http://mail.zope.org/mailman/listinfo/zope-dev )<BR>&gt; <BR>&gt; <BR>
</DIV>
</BODY></HTML>