-
Notifications
You must be signed in to change notification settings - Fork 38
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
Simplify/eliminate callRemote #10
Comments
Michael, You are quite correct that callRemote could be eliminated in favor of Remote methods do not behave in the same manner as native methods. If Cheers, Tom On Sat, Apr 26, 2014 at 1:25 AM, Michael Farrell
|
@micolous, you may simplify your code using |
I was thinking it may be better to eliminate the use of
callRemote
in txdbus. This would mean that D-Bus remote objects are first-class Python objects, which makes RPC interfaces much simpler, and don't need any glue to talk over the D-Bus.How I've implemented this in my own code is with something like this:
There's a some limitations to my implementation as it stands:
org.freedesktop.DBus.Introspection
interface in order to be smart about this (and populate things like__all__
.org.freedesktop.DBus.Properties
to Python properties.There's one major limitation to my implementation as it stands is that it can't handle org.freedesktop.DBus.Properties interface wrapping to a Python property. This would require a little bit more glue in order to handle this.
With
o.fd.DB.Properties
implementation, it would allow even more interaction like a normal Python object:This would make
txdbus
work a little more likepython-dbus
, and other RPC mechanisms like Python's XMLRPC module in the standard library (ServiceProxy
).The text was updated successfully, but these errors were encountered: