OpenCmis客户端 - 创建alfresco标签

时间:2017-01-10 09:07:40

标签: python alfresco opencmis

我正在尝试创建一个脚本,使用opencmis库(python)将文档上传到Alfresco存储库。上传实际文档很好,但我在大脑上如何向文档中添加标签。

我正在思考:

props = doc.getProperties()
tagname = ['test']
tag = {"cm:taggable": tagname}
doc.updateProperties(tag)

但这会引发http 500错误

任何人都有想法吗?

1 个答案:

答案 0 :(得分:2)

我很确定无法通过CMIS操纵标签。相反,请使用Alfresco REST API。它支持标记。