Is there any way to override the getattr attribute of a component?
From what I gather, the getattr attribute will be called only after there is no other Attribute with the same name.
The target is to, for example, enable Links to Operators or Parameter using only a simple dot-notation.
What I tried is
Nope, can’t do that. Using parameters as an example, you would have to create properties for the parameters, and they would have to be capitalized for promotion.
Thats what I though. I found my way arround by writing my own customClass that is implementing its own __getattr__ and its own __repr__ method and exposing it via a Data-Attribute. The aim is to expose params and ops via a simple dot-notation.
I implemented it into this component. You can basicly access OPs, parameters and other attributes of all the child.components via a simple dot-notation from the Data-Attribute that is exposed.