On Wed, Mar 13, 2002 at 07:59:23PM +0100, Siegmund Fuhringer wrote:
## Script (Python) "deleteFile" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## request = container.REQUEST RESPONSE = request.RESPONSE context.manage_delObjects( ids=('testfile',) )
the method isn't happy with a tuple :( correct line: context.manage_delObjects( ids=['testfile',] )
when i try the script with "http://blabla.blabla.com/testfolder/deleteFile" i get the following error msg:
Error Value: object doesn't support item deletion
lg - siegmund -- _ __ (_)________ / /_ __ ______ ________ ____ _________ _ / / ___/ __ \/ __ \/ / / / __ \/ ___/ _ \ / __ \/ ___/ __ `/ / (__ ) /_/ / / / / /_/ / /_/ (__ ) __// /_/ / / / /_/ / /_/____/\____/_/ /_/\__, / .___/____/\___(_)____/_/ \__, / /____/_/ sifu@isohypse.org /____/