-
Notifications
You must be signed in to change notification settings - Fork 1
Attributes
Stache edited this page Jun 16, 2022
·
3 revisions
The idea is simple: Nodes can be filled in with as many attributes as required when exploring, and these attributes can then be passed to a Model, but when using or exporting a Model, only the basic attributes (i.e., path, foundType, descriptiveType, unique, default, description, choices, regex) are used.
When using or exporting a Tree, however, everything is retained.

- Exporting a traversal from a Node requires to have a traversal; such traversal is generated with
argonodes.appliers.make_traversal, which explicitly discardsfieldName,data,parent,children, andtraversal. - The traversal is regenerated when using
argonodes.nodes.Node.export_traversal, which is used byargonodes.models.Model.add_traversal. - ... TODO, cf. #54.