Mercurial > libervia-backend
diff src/bridge/DBus.py @ 364:312ca6f9d84a
core: configuration file
SàT's main options can now be put in a configuration file which can be in different locations
Bridge: new getConfig option
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 18 Jun 2011 16:22:50 +0200 |
parents | 6b5626c37909 |
children | efbfccfed623 |
line wrap: on
line diff
--- a/src/bridge/DBus.py Sun Jun 12 23:43:36 2011 +0200 +++ b/src/bridge/DBus.py Sat Jun 18 16:22:50 2011 +0200 @@ -171,6 +171,12 @@ return self.cb["disconnect"](unicode(profile_key)) @dbus.service.method(const_INT_PREFIX+const_COMM_SUFFIX, + in_signature='sss', out_signature='s', + async_callbacks=None) + def getConfig(self, section, name, profile_key='@DEFAULT@'): + return self.cb["getConfig"](unicode(section), unicode(name), unicode(profile_key)) + + @dbus.service.method(const_INT_PREFIX+const_COMM_SUFFIX, in_signature='s', out_signature='a(sa{ss}as)', async_callbacks=None) def getContacts(self, profile_key="@DEFAULT@"):