Additional Info
Known limitations
- Nodes can only be retrieved with the
get
method if they contain special characters or numbers (excluding_
) - Names such as
set
,get
,transform
,val
, etc. (aka CoreNames) cannot be declared as they are already bound to methods/values that are required in order for the Node to function properly. There are also separate master-exclusive CoreNames such assave
. - There is no good way to change the master value (setting
PYNDatabase.fileObj
does not modify the Nodes within the database, only the master value.)- To work around this, simply redeclare the variable your PYNDatabase is stored in with a PYNDatabase object containing a dictionary, and set
PYNDatabase.file
to the filename (to overwrite).
- To work around this, simply redeclare the variable your PYNDatabase is stored in with a PYNDatabase object containing a dictionary, and set
IDEs not playing nice
Some IDEs may throw errors saying that the PYNDatabase class does not have the attribute you requested. Technically, they're not wrong, as it hasn't been created yet. In PyCharm, the fix is simple: enter the context actions menu, and select "Mark all unresolved attributes of PYNDatabase as ignored."
as shown in the image below: