Mercurial > libervia-backend
comparison frontends/src/bridge/DBus.py @ 1059:b2b9c184033f
core, frontends: remove bridge method "connect" (always use asyncConnect)
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 23 May 2014 10:40:54 +0200 |
parents | 6e975c6b0faf |
children | 95758ef3faa8 |
comparison
equal
deleted
inserted
replaced
1058:0a9986452bba | 1059:b2b9c184033f |
---|---|
112 return unicode(self.db_core_iface.asyncGetParamA(name, category, attribute, security_limit, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:]))) | 112 return unicode(self.db_core_iface.asyncGetParamA(name, category, attribute, security_limit, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:]))) |
113 | 113 |
114 def confirmationAnswer(self, id, accepted, data, profile): | 114 def confirmationAnswer(self, id, accepted, data, profile): |
115 return self.db_core_iface.confirmationAnswer(id, accepted, data, profile) | 115 return self.db_core_iface.confirmationAnswer(id, accepted, data, profile) |
116 | 116 |
117 def connect(self, profile_key="@DEFAULT@", password=''): | |
118 return self.db_core_iface.connect(profile_key, password) | |
119 | |
120 def delContact(self, entity_jid, profile_key="@DEFAULT@"): | 117 def delContact(self, entity_jid, profile_key="@DEFAULT@"): |
121 return self.db_core_iface.delContact(entity_jid, profile_key) | 118 return self.db_core_iface.delContact(entity_jid, profile_key) |
122 | 119 |
123 def discoInfos(self, entity_jid, profile_key, callback=None, errback=None): | 120 def discoInfos(self, entity_jid, profile_key, callback=None, errback=None): |
124 return self.db_core_iface.discoInfos(entity_jid, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:])) | 121 return self.db_core_iface.discoInfos(entity_jid, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:])) |