]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- fixed dbus signature of SetConfig
authorArvin Schnell <aschnell@suse.de>
Mon, 2 Sep 2013 13:25:51 +0000 (15:25 +0200)
committerArvin Schnell <aschnell@suse.de>
Mon, 2 Sep 2013 13:25:51 +0000 (15:25 +0200)
examples/python/set-config.py [new file with mode: 0755]
server/Client.cc

diff --git a/examples/python/set-config.py b/examples/python/set-config.py
new file mode 100755 (executable)
index 0000000..be4f8af
--- /dev/null
@@ -0,0 +1,13 @@
+#!/usr/bin/python
+
+import dbus
+
+bus = dbus.SystemBus()
+
+snapper = dbus.Interface(bus.get_object('org.opensuse.Snapper', '/org/opensuse/Snapper'),
+                         dbus_interface='org.opensuse.Snapper')
+
+data = { "NUMBER_CLEANUP" : "yes", "NUMBER_LIMIT" : "10" }
+
+snapper.SetConfig("root", data)
+
index 012b36e18935e1800c4cb9d6a49da6ca11eea882..50b8cb98b63157acb19cee4227037ad22c50ae04 100644 (file)
@@ -211,7 +211,7 @@ Client::introspect(DBus::Connection& conn, DBus::Message& msg)
 
        "    <method name='SetConfig'>\n"
        "      <arg name='config-name' type='s' direction='in'/>\n"
-       "      <arg name='data' type='(a{ss})' direction='in'/>\n"
+       "      <arg name='data' type='a{ss}' direction='in'/>\n"
        "    </method>\n"
 
        "    <method name='CreateConfig'>\n"