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.')