add#

Transaction.add(node: Union[Node, str], value: Any) None[source]#

Adds a single node set command to the set transaction.

Parameters:
  • node (Union[Node, str]) – Node object or string representing the node.

  • value (Any) – Value that should be set to the node.

Raises:
  • AttributeError – If no transaction is in progress.

  • ValueError – If the node is passed as a string in form of a relative path and no prefix can be added.

Return type:

None