##parameters= # $Id: folder_rename.py 28488 2005-10-21 13:16:23Z lregebro $ """ Rename objects which ids are passed in the request. Used within the folder_contents template. """ REQUEST = context.REQUEST if context.portal_type in ('CoursesFolder',): return REQUEST.RESPONSE.redirect(context.absolute_url() + \ ('/academics_contents?portal_status_message=%s' \ % ('Courses cannot be renamed',))) new_ids = REQUEST['new_ids'] new_ids = [id.upper() for id in REQUEST['new_ids']] context.manage_renameObjects(REQUEST['ids'], new_ids, REQUEST) return REQUEST.RESPONSE.redirect(context.absolute_url() + \ ('/academics_contents?portal_status_message=%s' \ % ('psm_item(s)_renamed',)))