Déplacement pour eggification.
[Plinn.git] / skins / custom_control / folder_paste_control.py
diff --git a/skins/custom_control/folder_paste_control.py b/skins/custom_control/folder_paste_control.py
deleted file mode 100755 (executable)
index f302d9f..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-##parameters=**kw
-##title=Paste objects to a folder from the clipboard
-##
-from Products.CMFDefault.exceptions import CopyError
-from Products.CMFDefault.exceptions import zExceptions_Unauthorized
-
-if context.cb_dataValid:
-       try:
-               result = context.manage_pasteObjects(context.REQUEST['__cp'])
-               return context.setStatus( True, 'Item%s pasted.' %
-                                                                               ( len(result) != 1 and 's' or '' ) )
-       except CopyError:
-               return context.setStatus(False, 'CopyError: Paste failed.')
-       except zExceptions_Unauthorized:
-               return context.setStatus(False, 'Unauthorized: Paste failed.')
-       except KeyError :
-               return context.setStatus(False, 'Please copy or cut one or more items to paste first.')
-else:
-       return context.setStatus(False, 'Please copy or cut one or more items to paste first.')