15608362db3424ccc1cf529a2d8a0657996b3af8
[Plinn.git] / skins / control / lazy_edit_metadata.py
1 ##parameters=
2 form = context.REQUEST.form.copy()
3 form.pop('ajax', None)
4 pathAndpropName, value = form.popitem()
5 path, propName = pathAndpropName.split('//')
6 ob = context.restrictedTraverse(path)
7 ob.editMetadata(**{propName:value})
8 return getattr(ob, propName)