NodeData(id=None, parent=None, position=None, properties=None)¶
Immutable data-holding object which represents tree node data. Its attributes are identical to the columns in the
nodestable (see Database Model).
Since the object is immutable, you must retrieve a new instance of the same node using
libtree.core.query.get_node()to get updated values.
To manipulate the values, you must use one of the following functions:
libtreefunctions need a database ID in order to know on which data they should operate, but also accept
Nodeobjects to make handling with them easier.
All parameters are optional and default to
Position in between its siblings
Return dictionary containing all values of the object.