Ajout script de regénération des photos (vigettes, retailles, zoom).
[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.')