Mercurial > libervia-backend
comparison frontends/src/bridge/DBus.py @ 413:dd4caab17008
core: - individual parameters managed through sqlite
- new asyncGetParamA method, which allow to get parameter for a not connected profile
==> individual parameters are cached in memory when the profile is connected, but must be accessed
though sqlite else, and that must be done asynchronously
primitivus:
- profile manager updated to use asyncGetParamA
/!\ still broken, need more work before being able to run again
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 01 Nov 2011 20:39:22 +0100 |
parents | 10b4f577d0c0 |
children | 28e4299d4553 |
comparison
equal
deleted
inserted
replaced
412:62b17854254e | 413:dd4caab17008 |
---|---|
60 return self.db_core_iface.addContact(entity_jid, profile_key) | 60 return self.db_core_iface.addContact(entity_jid, profile_key) |
61 | 61 |
62 def asyncConnect(self, profile_key="@DEFAULT@", callback=None, errback=None): | 62 def asyncConnect(self, profile_key="@DEFAULT@", callback=None, errback=None): |
63 return self.db_core_iface.asyncConnect(profile_key, reply_handler=callback, error_handler=errback) | 63 return self.db_core_iface.asyncConnect(profile_key, reply_handler=callback, error_handler=errback) |
64 | 64 |
65 def asyncGetParamA(self, name, category, attribute="value", profile_key="@DEFAULT@", callback=None, errback=None): | |
66 return unicode(self.db_core_iface.asyncGetParamA(name, category, attribute, profile_key, reply_handler=callback, error_handler=errback)) | |
67 | |
65 def callMenu(self, category, name, menu_type, profile_key): | 68 def callMenu(self, category, name, menu_type, profile_key): |
66 return unicode(self.db_core_iface.callMenu(category, name, menu_type, profile_key)) | 69 return unicode(self.db_core_iface.callMenu(category, name, menu_type, profile_key)) |
67 | 70 |
68 def confirmationAnswer(self, id, accepted, data): | 71 def confirmationAnswer(self, id, accepted, data): |
69 return self.db_core_iface.confirmationAnswer(id, accepted, data) | 72 return self.db_core_iface.confirmationAnswer(id, accepted, data) |