[CMF-checkins] CVS: CMF - folder_copy.py:1.1 folder_cut.py:1.1 folder_paste.py:1.1 folder_rename.py:1.1 folder_rename_items.py:1.1 folder_copy.dtml:NONE folder_cut.dtml:NONE folder_paste.dtml:NONE folder_rename.dtml:NONE
andrew@digicool.com
andrew@digicool.com
Thu, 28 Jun 2001 15:58:12 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault/skins/control
In directory korak.digicool.com:/tmp/cvs-serv24722/control
Added Files:
folder_copy.py folder_cut.py folder_paste.py folder_rename.py
folder_rename_items.py
Removed Files:
folder_copy.dtml folder_cut.dtml folder_paste.dtml
folder_rename.dtml
Log Message:
*further conversions to python scripts.
*Added some renaming enhancements by Chris Whithers.
--- Added File folder_copy.py in package CMF ---
## Script (Python) "folder_copy"
##title=Copy object from a folder to the clipboard
##parameters=
REQUEST=context.REQUEST
if REQUEST.has_key('ids'):
context.manage_copyObjects(REQUEST['ids'], REQUEST, REQUEST.RESPONSE)
return REQUEST.RESPONSE.redirect(context.absolute_url() + '/folder_contents?portal_status_message=Item(s)+Copied.')
else:
return REQUEST.RESPONSE.redirect(context.absolute_url() + '/folder_contents?portal_status_message=Please+select+one+or+more+items+to+copy+first.')
--- Added File folder_cut.py in package CMF ---
## Script (Python) "folder_cut"
##title=Cut objects from a folder and copy to the clipboard
##parameters=
REQUEST=context.REQUEST
if REQUEST.has_key('ids'):
context.manage_cutObjects(REQUEST['ids'], REQUEST)
return REQUEST.RESPONSE.redirect(context.absolute_url() + '/folder_contents?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.')
--- Added File folder_paste.py in package CMF ---
## Script (Python) "folder_paste"
##title=Paste objects to a folder from the clipboard
##parameters=
REQUEST=context.REQUEST
if context.cb_dataValid:
context.manage_pasteObjects(REQUEST['__cp'])
return REQUEST.RESPONSE.redirect(context.absolute_url() + '/folder_contents?portal_status_message=Item(s)+Pasted.')
else:
return REQUEST.RESPONSE.redirect(context.absolute_url() + '/folder_contents?portal_status_message=Copy+or+cut+one+or+more+items+to+paste+first.')
--- Added File folder_rename.py in package CMF ---
## Script (Python) "folder_rename"
##title=Rename Object
##parameters=
REQUEST=context.REQUEST
context.manage_renameObjects(REQUEST['ids'], REQUEST['new_ids'], REQUEST)
return REQUEST.RESPONSE.redirect(context.absolute_url() + '/folder_contents?portal_status_message=Item(s)+Renamed.')
--- Added File folder_rename_items.py in package CMF ---
## Script (Python) "folder_rename_items"
##title=Objects for folder_rename_form
##parameters=
ids = filter(lambda id,c=context.aq_explicit: hasattr(c,id),
context.REQUEST.get('ids',[]))
objects = map(lambda id,c=context: getattr(c,id),ids)
return filter(lambda ob: ob.cb_isMoveable(),
objects)
--- Removed file folder_copy.dtml from package CMF --
--- Removed file folder_cut.dtml from package CMF --
--- Removed file folder_paste.dtml from package CMF --
--- Removed file folder_rename.dtml from package CMF --