[Zope] Deleting a file in Python
Andreas Jung
lists at zopyx.com
Sat Aug 25 07:45:08 EDT 2007
--On 25. August 2007 07:35:06 -0400 zozer at cercy.net wrote:
> I'm reading the zope book, 2.6. And I've worked through the ZopeZoo
> tutorial in chapter 11. I want to make it possible to delete entries in
> the GuestBook via its web interface. It uses a python script to create the
> file with the line:
> context.manage_addProduct['OFSP'].manage_addFile(id,
> title="", file=comments)
>
> I assume I could write something like:
>
> context.manage_deleteProduct['OFSP'].manage_removeFile(id)
>
folder.manage_delObjects(id)
-aj
-------------- 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/20070825/7698a715/attachment.bin
More information about the Zope
mailing list