From: Arvin Schnell Date: Mon, 2 Sep 2013 13:25:51 +0000 (+0200) Subject: - fixed dbus signature of SetConfig X-Git-Tag: v0.1.6~4 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=43d1d5ed3c4ee94c6bd6ee2b855056bbba2d2f77;p=thirdparty%2Fsnapper.git - fixed dbus signature of SetConfig --- diff --git a/examples/python/set-config.py b/examples/python/set-config.py new file mode 100755 index 00000000..be4f8afe --- /dev/null +++ b/examples/python/set-config.py @@ -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) + diff --git a/server/Client.cc b/server/Client.cc index 012b36e1..50b8cb98 100644 --- a/server/Client.cc +++ b/server/Client.cc @@ -211,7 +211,7 @@ Client::introspect(DBus::Connection& conn, DBus::Message& msg) " \n" " \n" - " \n" + " \n" " \n" " \n"