From f2b3ca02a12d4fff5f7532254f80242321e0a0a6 Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Wed, 8 Sep 2004 12:56:21 +0000 Subject: [PATCH] Renamed from folder_cut.py to Folder_cut.py. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1550 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_core/{folder_cut.py => Folder_cut.py} | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) rename product/ERP5/skins/erp5_core/{folder_cut.py => Folder_cut.py} (70%) diff --git a/product/ERP5/skins/erp5_core/folder_cut.py b/product/ERP5/skins/erp5_core/Folder_cut.py similarity index 70% rename from product/ERP5/skins/erp5_core/folder_cut.py rename to product/ERP5/skins/erp5_core/Folder_cut.py index 6817ceff35..8f76ded524 100755 --- a/product/ERP5/skins/erp5_core/folder_cut.py +++ b/product/ERP5/skins/erp5_core/Folder_cut.py @@ -1,6 +1,12 @@ -## Script (Python) "folder_cut" -##title=Cut objects from a folder and copy to the clipboard +## Script (Python) "Folder_cut" +##bind container=container +##bind context=context +##bind namespace= +##bind script=script +##bind subpath=traverse_subpath ##parameters=form_id,selection_name='',uids=[],listbox_uid=[] +##title=Cut objects from a folder and copy to the clipboard +## selected_uids = context.portal_selections.updateSelectionCheckedUidList(selection_name,listbox_uid,uids) uids = context.portal_selections.getSelectionCheckedUidsFor(selection_name) # make sure nothing is checked after @@ -11,11 +17,11 @@ REQUEST=context.REQUEST # do we still need ids ? XXX finish the work here #if REQUEST.has_key('ids'): # context.manage_cutObjects(REQUEST['ids'], REQUEST) -# return REQUEST.RESPONSE.redirect(context.absolute_url() + '/' + form_id + '/folder_contents?portal_status_message=Item(s)+Cut.') +# return REQUEST.RESPONSE.redirect(context.absolute_url() + '/' + form_id + '/Folder_viewContentList?portal_status_message=Item(s)+Cut.') #elif REQUEST.has_key('uids'): if uids != []: #context.manage_cutObjects(uids=REQUEST['uids'], REQUEST=REQUEST) context.manage_cutObjects(uids=uids, REQUEST=REQUEST) return REQUEST.RESPONSE.redirect(context.absolute_url() + '/' + form_id + '?portal_status_message=Item(s)+Cut.') else: - return REQUEST.RESPONSE.redirect(context.absolute_url() + '/folder_contents?portal_status_message=Please+select+one+or+more+items+to+cut+first.') + return REQUEST.RESPONSE.redirect(context.absolute_url() + '/Folder_viewContentList?portal_status_message=Please+select+one+or+more+items+to+cut+first.') -- 2.30.9