How to add multi-valued property to jcr node through python code using cURL? -
how add multivalue property jcr node through java code? says string array created pass node.setproperty()
in java.
however, in python, when create list , try pass curl command, error saying python cannot concatenate string , list.
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])
please help.
in list of parameters passed popen()
you're trying concatenate "accordions="
, string, list
, well, list. no wonder python confused.
as far know, jcr specifications not required rest api. you're referring sling here, in case may want add sling in keywords attract experts' attention.
i'd advice use requests
python library instate of running external processes through subprocess
.