[Zope] DELETE Objects

Andreas Jung lists at zopyx.com
Tue Apr 18 08:23:26 EDT 2006

--On 18. April 2006 14:15:48 +0200 Erik Billing <erik at ekhagen.org> wrote:

> I want to create a python script that deletes a specific file from a
> folder. For now, the user who is calling the script does not have the
> Delete objects permission on the folder, only the file which he should be
> able to delete. I have previously used the delObjects method on the
> folder to remove the file, but this requires the Delete obejcts
> permission on the folder itself.

folder.manage_delObjects()  is the only API method you should use.
If your script needs additional permissions you must give the script
the proxy role Manager.


ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: info at zopyx.com - Phone +49 - 7071 - 793376
E-Publishing, Python, Zope & Plone development, Consulting
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20060418/5c99375b/attachment.bin

More information about the Zope mailing list