Back to index

plone3  3.1.7
image_edit_control.py
Go to the documentation of this file.
00001 ##parameters=file, **kw
00002 ##
00003 from Products.CMFDefault.exceptions import ResourceLockedError
00004 from Products.CMFDefault.utils import Message as _
00005 
00006 try:
00007     context.edit(file=file)
00008     return context.setStatus(True, _(u'Image changed.'))
00009 except ResourceLockedError, errmsg:
00010     return context.setStatus(False, errmsg)