Replies: 1 comment 2 replies
|
We agreed on the following pattern: and agreed on 4. (pandas inspired) as being nice-to-have. The latter can only work when the name is feasible as an attribute. We also discussed a feature where one can find any PVMT object (Domain, Group of ProperyValue) by name. |
2 replies
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.
With the PVMT rework the access will be granted on the model itself (configuration) and on any
GenericElement(object) via.pvmt. Now from the previous implementation access to domains, groups and property-values on object level implemented dict-like behavior, e.g.:Notice the
.(dot) notation which controls what we end up with (either a group or a property-value). To minimize implementation and maintenance effort there should be only one, pythonic way to access wanted PVMT elements on config and object level. We want to agree on one way with a poll later.Current poll options:
obj.pvmt["domain.group.property_value"]obj.pvmt["domain"]["group"]["property_value"]obj.pvmt.domains.by_name("domain").groups.by_name("group").properties.by_name("property_value")obj.pvmt.domain.group.property_valueobj.pvmt.domains["my-domain"].groups["my-group"]If no poll option satisfies your needs or you have a better option, please share it in a comment below. Your ideas will be added as a poll option.
All reactions