-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NodeLinkManager support dot separated namespace attributes retrieving (…
…#4625) The `NodeLinksManager` is used by the ``inputs`` and ``outputs`` attributes of the ``ProcessNode`` class to allow users to quickly access input and output nodes by their link label. Nested namespaces in link labels are converted to double underscores before it is stored in the database because it can only store a flat string. This is an implementation detail, however, and the user should not have to know about it and should be able to use the nested namespace. However, up till now, one had to pass the link label as stored in the database, i.e. node.inputs.nested__sub__namespace After this commit, it is now possible to use the more intuitive node.inputs.nested.sub.namespace For backwards compatibility, the old flat link is still supported but will emit a deprecation warning. Co-authored-by: Sebastiaan Huber <[email protected]>
- Loading branch information
Showing
3 changed files
with
103 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters