[Zope] Programmatically deleting objects
Chris Withers
lists at simplistix.co.uk
Wed Mar 24 08:32:17 EST 2004
(keep replies on the list)
Horak, Karl wrote:
> I think that Zope isn't correctly finding my target item and keeps calling
> manage_delObjects until the parameter list is empty, which never happens.
What's your evidence for this?
> For an item that is not in the same folder as my method for deletion, is the
> correct syntax:
>
> /ORDweb/ORDlibrary/BC.manage_delObjects(ids)
> (where ids is a list of a single object id)
> or
> /ORDweb/ORDlibrary/BC.manage_delObjects(/ORDweb/ORDlibrary/BC/ids)
> or
> something else?
if ids contains the ids of items you want to delete, and those items are
contained in BC, then you want:
ORDweb.ORDlibrary.BC.manage_delObjects(ids)
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope
mailing list