## Script (Python) "folder_delete" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=ids=[], REQUEST=None ##title= ## # $Id: course_result_delete.py 1482 2007-02-23 16:56:46Z joachim $ """ FIXME: add docstring. """ from Products.CMFCore.utils import getToolByName here = context ret_url = here.absolute_url() if ids: here.manage_delObjects(ids) message = 'portal_status_message=psm_item(s)_deleted' else: message = 'portal_status_message=psm_select_at_least_one_document' if REQUEST is not None: return REQUEST.RESPONSE.redirect(ret_url + '?' + message)