[Zope] manage_delObjects()

Dieter Maurer dieter at handshake.de
Wed Mar 23 14:16:15 EST 2005


Leticia Larrosa wrote at 2005-3-23 12:37 -0400:
> ...
>"manage_delObjects", example:
>folderToDelete = "exampleFolder"
>container.manage_delObjects([container[folderToDelete]])
>#or
>container.manage_delObjects([getattr(container, folderToDelete)])
>----------------------------
>I get the following error:
>Error Type: AttributeError
>Error Value: __getslice__

You pass in the object itself -- but you should pass its id.

Thus, the following will probably work:

      container.manage_delObjects([folderToDelete])

-- 
Dieter


More information about the Zope mailing list