How to add multivalue property to jcr node through java code?表示可以创建一个字符串数组以传递给Java中的node.setProperty()
。
然而,在Python中,当我创建一个列表并尝试使用curl命令传递它时,我收到一条错误,指出Python无法连接字符串和列表。
list = ["one","two"]
subprocess.Popen(['curl','-u','admin:admin','-d',"jcr:primaryType=nt:unstructured",'-d',"sling:resourceType=xxxx",'-d',"accordionType=Please Select",'-d',"accordions="+list,""+path])
请帮忙。