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

Resolve value of OBJECT_PATH type to a real proxy object #104

Open
vbuell opened this issue Oct 10, 2022 · 0 comments
Open

Resolve value of OBJECT_PATH type to a real proxy object #104

vbuell opened this issue Oct 10, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@vbuell
Copy link

vbuell commented Oct 10, 2022

Similarly to ORMs where one-to-one/one-to-many relations can be automatically dereferenced by the getter, dasbus could do same for values of OBJECT_PATH type. Something like

property_x = bus.get_proxy('org.MyService', '.../Controller').GetPathById('some_id').PropertyX

or

property_x = bus.get_proxy('org.MyService', '.../Controller').GetPathById('some_id').to_proxy().PropertyX

instead of:

path = bus.get_proxy('org.MyService', '.../Controller').GetPathById('some_id')
property_x = bus.get_proxy('org.MyService', path).PropertyX

That would significantly simplify the client's code as dereferencing work can easily be 25% of all dbus related code.

@poncovka poncovka added the enhancement New feature or request label Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants