gpt4 book ai didi

python - OpenCmis 客户端 - 创建露天标签

转载 作者:行者123 更新时间:2023-12-01 03:24:18 27 4
gpt4 key购买 nike

我正在尝试创建一个脚本,使用 opencmis 库(python)将文档上传到 Alfresco 存储库中。上传实际文档没问题,但我正在绞尽脑汁思考如何向文档添加标签。

我的想法是:

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

但这会引发 http 500 错误

有人有什么想法吗?

最佳答案

我相当确定标签不能通过 CMIS 进行操作。相反,请使用 Alfresco REST API 。它支持标记。

关于python - OpenCmis 客户端 - 创建露天标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41564990/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com