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
This commit is contained in:
Goffi 2011-06-18 16:22:50 +02:00
commit 1da78d1301

View file

@ -81,6 +81,9 @@ class DBusBridgeFrontend(BridgeFrontend):
def disconnect(self, profile_key="@DEFAULT@"):
return self.db_comm_iface.disconnect(profile_key)
def getConfig(self, section, name, profile_key='@DEFAULT@'):
return unicode(self.db_comm_iface.getConfig(section, name, profile_key))
def getContacts(self, profile_key="@DEFAULT@"):
return self.db_comm_iface.getContacts(profile_key)