projects
/
contrib
/
cloudeebus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da64e56
)
dbus-send: json args support
author
Luc Yriarte
<luc.yriarte@linux.intel.com>
Fri, 27 Jul 2012 11:54:01 +0000
(13:54 +0200)
committer
Luc Yriarte
<luc.yriarte@linux.intel.com>
Fri, 27 Jul 2012 11:54:01 +0000
(13:54 +0200)
dbus-tools/dbus-send.py
patch
|
blob
|
history
diff --git
a/dbus-tools/dbus-send.py
b/dbus-tools/dbus-send.py
index
93b1eb6
..
f36488f
100644
(file)
--- a/
dbus-tools/dbus-send.py
+++ b/
dbus-tools/dbus-send.py
@@
-15,7
+15,7
@@
###############################################################################
-import sys, dbus
+import sys, dbus
, json
from twisted.internet import glib2reactor
# Configure the twisted mainloop to be run inside the glib mainloop.
@@
-50,8
+50,12
@@
class DbusSendService:
print "invalid bus: %s" % list[0]
return 2
+ args = []
+ if len(list) == 5:
+ args = json.loads(list[4])
+
self.obj = self.bus.get_object(list[1], list[2])
- self.obj.get_dbus_method(list[3])()
+ self.obj.get_dbus_method(list[3])(
*args
)
return 0