remove file from zope filesystem with Python Script
Suppose I have a folder object and a string containing the id of a file in that folder. How would I remove a file in that folder on the zope filesystem using the Zope API from within a Python Script? Thanks, John Hunter
John Hunter <jdhunter@ace.bsd.uchicago.edu> wrote:
Suppose I have a folder object and a string containing the id of a file in that folder. How would I remove a file in that folder on the zope filesystem using the Zope API from within a Python Script?
theid='foo' folder.manage_delObjects(ids=[theid]) Florent -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 10 http://nuxeo.com mailto:fg@nuxeo.com
folder.manage_delObjects(id) Where id is a string or a sequence of strings. hth, Casey John Hunter wrote:
Suppose I have a folder object and a string containing the id of a file in that folder. How would I remove a file in that folder on the zope filesystem using the Zope API from within a Python Script?
Thanks, John Hunter
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Casey Duncan -
Florent Guillaume -
John Hunter