Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
The current Javascript API is good at reading data from the repository, but has not yet a working implementation of assignments like
node.mimetype = "text/plain" a.k.a node["mimetype"] = "text/plain"
node["members"] = ["bertrand", "lars"];
node["childnode"] =
The first example should call node.setProperty("mimetype", "text/plain");
The second example should call node.setProperty("members", new String[]
);
The third example should either set the properties of the child node "childnode" or of the node referenced in a property called "childnode".
This should also allow for nesting of properties,
node["childnode"] = {"mimetype": "text/plain", "text": "bla bla bla", "childnode:
{"mimetype" : "text/plain" }}