I am currently limited by how a tree is represented in show method.
Currently, the __print_backend method displays a node based on his tag or a data_property.
In my case, I want to change display based on nodedepth in current tree.
One possibility to keep retro-compatibility would be to implement a display method on Node, returning by default the tag, with ability return a provided data_property, remaining **kwargs would allow specifying client defined behaviours by redefining display method by Node inheritance.
I am currently limited by how a
tree
is represented inshow
method. Currently, the__print_backend
method displays a node based on histag
or adata_property
.In my case, I want to change display based on
node
depth
in current tree.One possibility to keep retro-compatibility would be to implement a
display
method onNode
, returning by default thetag
, with ability return a provideddata_property
, remaining **kwargs would allow specifying client defined behaviours by redefiningdisplay
method byNode
inheritance.