Re: [Zope] Deleting a file in Python

2007-08-28 Thread zozer
On Sat, Aug 25, 2007 at 07:35:06AM -0400, [EMAIL PROTECTED] wrote: but I can't figure out where context.* is documented. It depends what kind of object context is. To find out, you may find this product useful: http://plone.org/products/docfindertab Here is a good start reference for Zope

Re: [Zope] Deleting a file in Python

2007-08-27 Thread Paul Winkler
On Sat, Aug 25, 2007 at 07:35:06AM -0400, [EMAIL PROTECTED] wrote: but I can't figure out where context.* is documented. It depends what kind of object context is. To find out, you may find this product useful: http://plone.org/products/docfindertab Here is a good start reference for Zope 2

[Zope] Deleting a file in Python

2007-08-25 Thread zozer
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,

Re: [Zope] Deleting a file in Python

2007-08-25 Thread Andreas Jung
--On 25. August 2007 07:35:06 -0400 [EMAIL PROTECTED] 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

Re: [Zope] Deleting a file in Python

2007-08-25 Thread Tim Nash
I had to go to the zope cookbook today to get this script so I thought I'd paste it here for you as well. It may help you. It is from this url: http://zopelabs.com/cookbook/1037768468 hth Tim # to copy something from a folder copy_info = some_folder.manage_copyObjects(('object_foo',