Skip to content

Commit

Permalink
- fixed dbus signature of SetConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
aschnell committed Sep 2, 2013
1 parent f6df5c2 commit 43d1d5e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions 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)

2 changes: 1 addition & 1 deletion server/Client.cc
Expand Up @@ -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"
Expand Down

0 comments on commit 43d1d5e

Please sign in to comment.