Mercurial > libervia-backend
comparison src/core/xmpp.py @ 934:34dd9287dfe5
plugin account: bug fix profile deletion from the database + unsubscribe the contacts
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 24 Mar 2014 16:21:14 +0100 |
parents | 955e5c781a40 |
children | e1842ebcb2f3 |
comparison
equal
deleted
inserted
replaced
933:955e5c781a40 | 934:34dd9287dfe5 |
---|---|
82 | 82 |
83 self.disco.requestItems(jid_).addCallback(self.host_app.serverDiscoItems, self.disco, jid_, self.profile, self.client_initialized) | 83 self.disco.requestItems(jid_).addCallback(self.host_app.serverDiscoItems, self.disco, jid_, self.profile, self.client_initialized) |
84 self.conn_deferred.callback(None) | 84 self.conn_deferred.callback(None) |
85 | 85 |
86 def initializationFailed(self, reason): | 86 def initializationFailed(self, reason): |
87 print "initializationFailed: %s" % reason | 87 error(_("ERROR: XMPP connection failed for profile '%(profile)s': %(reason)s" % {'profile': self.profile, 'reason': reason})) |
88 self.host_app.bridge.connectionError("AUTH_ERROR", self.profile) | 88 self.host_app.bridge.connectionError("AUTH_ERROR", self.profile) |
89 try: | 89 try: |
90 client.XMPPClient.initializationFailed(self, reason) | 90 client.XMPPClient.initializationFailed(self, reason) |
91 except: | 91 except: |
92 # we already send an error signal, no need to raise an exception | 92 # we already send an error signal, no need to raise an exception |