Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow property indirection ${value(variable)} #290

Open
rhaschke opened this issue Oct 4, 2021 · 2 comments
Open

Allow property indirection ${value(variable)} #290

rhaschke opened this issue Oct 4, 2021 · 2 comments

Comments

@rhaschke
Copy link
Contributor

rhaschke commented Oct 4, 2021

Unfortunately, due to limitations of the property expression parser, we cannot implement property indirection, i.e. having a property variable that holds the name of the actual property one wants to access: ${${variable}}.
However, that's a crucial feature I missed multiple times in the past. One idea is to expose a function, e.g. value() which performs the indirection on the python level - without the need to adapt the expression parser: ${value(variable)}

@rhaschke rhaschke changed the title Allow property indirection ${value(variable)} Allow property indirection ${value(variable)} Oct 4, 2021
@gavanderhoorn
Copy link
Contributor

Isn't this another instance of "double evaluation is not supported"?

@rhaschke
Copy link
Contributor Author

rhaschke commented Oct 5, 2021

Yes, exactly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants