Restauration de la localisation des détails des contenus pour ckeditor (suite au...
[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)