97a5960155aa65e3236f27f023d40888e90d3746
2 from Products
.CMFDefault
.exceptions
import ResourceLockedError
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.')