Mercurial > libervia-backend
comparison frontends/src/bridge/DBus.py @ 1037:6e975c6b0faf
core, memory, bridge, plugin misc_register_account: move registerNewAccount to a new plugin:
- the bridge method has been removed, now a plugin takes care of it with XMLUI callback system
- TODO: xmpp.RegisteringAuthenticator still needs to be fixed
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 16 May 2014 00:58:20 +0200 |
parents | 15f43b54d697 |
children | b2b9c184033f |
comparison
equal
deleted
inserted
replaced
1036:35048cafb18d | 1037:6e975c6b0faf |
---|---|
202 return self.db_core_iface.loadParamsTemplate(filename) | 202 return self.db_core_iface.loadParamsTemplate(filename) |
203 | 203 |
204 def paramsRegisterApp(self, xml, security_limit=-1, app=''): | 204 def paramsRegisterApp(self, xml, security_limit=-1, app=''): |
205 return self.db_core_iface.paramsRegisterApp(xml, security_limit, app) | 205 return self.db_core_iface.paramsRegisterApp(xml, security_limit, app) |
206 | 206 |
207 def registerNewAccount(self, login, password, email, host, port=5222): | |
208 return unicode(self.db_core_iface.registerNewAccount(login, password, email, host, port)) | |
209 | |
210 def saveParamsTemplate(self, filename): | 207 def saveParamsTemplate(self, filename): |
211 return self.db_core_iface.saveParamsTemplate(filename) | 208 return self.db_core_iface.saveParamsTemplate(filename) |
212 | 209 |
213 def sendMessage(self, to_jid, message, subject='', mess_type="auto", extra={}, profile_key="@NONE@", callback=None, errback=None): | 210 def sendMessage(self, to_jid, message, subject='', mess_type="auto", extra={}, profile_key="@NONE@", callback=None, errback=None): |
214 return self.db_core_iface.sendMessage(to_jid, message, subject, mess_type, extra, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:])) | 211 return self.db_core_iface.sendMessage(to_jid, message, subject, mess_type, extra, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:])) |