[CMF-checkins]
SVN: CMF/trunk/CMFDefault/skins/zpt_control/folder_cut_control.py
- catch Unauthorized as well
Yvo Schubbe
y.2005- at wcm-solutions.de
Tue Dec 6 05:03:26 EST 2005
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.'))
More information about the CMF-checkins
mailing list