Merge branch 'zope-2.13' of ssh://ssh.cri.ensmp.fr/~pin/gitrepositories/Portfolio...
[Portfolio.git] / skins / photo_metadata_edit_control.py
1 ##parameters=**kw
2 from Products.CMFDefault.exceptions import ResourceLockedError
3 try:
4 context.editMetadata(**kw)
5 return context.setStatus(True, 'Metadata changed.')
6 except ResourceLockedError, errmsg:
7 return context.setStatus(False, 'This resource is locked via webDAV.')