[Zope] object doesn't support item deletion

Siegmund Fuhringer sifu@isohypse.org
Wed, 13 Mar 2002 19:59:23 +0100


hi...

i'm unable to delete files with a python script (and also with a dtml
method) :(

i've created a folder "/testfolder"
in this folder exists a file "testfile"
and the following python script "deleteFile" is also located in the
folder:

## 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',) )


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        /____/