Mercurial > libervia-backend
comparison frontends/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 | 208107419b17 |
children | efbfccfed623 |
comparison
equal
deleted
inserted
replaced
363:54c77a56b22f | 364:312ca6f9d84a |
---|---|
79 return self.db_req_iface.deleteProfile(profile) | 79 return self.db_req_iface.deleteProfile(profile) |
80 | 80 |
81 def disconnect(self, profile_key="@DEFAULT@"): | 81 def disconnect(self, profile_key="@DEFAULT@"): |
82 return self.db_comm_iface.disconnect(profile_key) | 82 return self.db_comm_iface.disconnect(profile_key) |
83 | 83 |
84 def getConfig(self, section, name, profile_key='@DEFAULT@'): | |
85 return unicode(self.db_comm_iface.getConfig(section, name, profile_key)) | |
86 | |
84 def getContacts(self, profile_key="@DEFAULT@"): | 87 def getContacts(self, profile_key="@DEFAULT@"): |
85 return self.db_comm_iface.getContacts(profile_key) | 88 return self.db_comm_iface.getContacts(profile_key) |
86 | 89 |
87 def getHistory(self, from_jid, to_jid, size): | 90 def getHistory(self, from_jid, to_jid, size): |
88 return self.db_comm_iface.getHistory(from_jid, to_jid, size) | 91 return self.db_comm_iface.getHistory(from_jid, to_jid, size) |