Log message for revision 40582:
  - catch Unauthorized as well

Changed:
  U   CMF/trunk/CMFDefault/skins/zpt_control/folder_cut_control.py

-=-
Modified: CMF/trunk/CMFDefault/skins/zpt_control/folder_cut_control.py
===================================================================
--- CMF/trunk/CMFDefault/skins/zpt_control/folder_cut_control.py        
2005-12-06 10:00:58 UTC (rev 40581)
+++ CMF/trunk/CMFDefault/skins/zpt_control/folder_cut_control.py        
2005-12-06 10:03:25 UTC (rev 40582)
@@ -2,6 +2,7 @@
 ##title=Cut objects from a folder and copy to the clipboard
 ##
 from Products.CMFDefault.exceptions import CopyError
+from Products.CMFDefault.exceptions import zExceptions_Unauthorized
 from Products.CMFDefault.utils import MessageID as _
 
 try:
@@ -12,3 +13,5 @@
         return context.setStatus(True, _('Items cut.'))
 except CopyError:
     return context.setStatus(False, _('CopyError: Cut failed.'))
+except zExceptions_Unauthorized:
+    return context.setStatus(False, _('Unauthorized: Cut failed.'))

_______________________________________________
CMF-checkins mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/cmf-checkins

Reply via email to