how to resolve attributes from a more complex python object #110
Unanswered
zakerzadeh
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Use the attribute resolver. https://zerosteiner.github.io/rule-engine/getting_started.html#attribute-backed-objects |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a class as below
class Class1:
def init(self):
self.id = ....
self.name = ....
self.type = List[Type()]
class Type:
def init(self):
self.model = ...
self.address = ....
my target object is an object of Class1 which has an attribute of class Type. I want to write a rule like below
"name == 'xyz' and type.model = 'abc' ", but it doesn't resolved properly. How can I achieve my goal?
Beta Was this translation helpful? Give feedback.
All reactions