comparison src/sat.tac @ 262:af3d4f11fe43

Added management of connection error - core: connection_error signal is sent if it's impossible to connect - bridge: added connection_error signal - quick_frontend: an error_message is shown when a connection_error is received
author Goffi <goffi@goffi.org>
date Sat, 22 Jan 2011 15:53:56 +0100
parents c8406fe5e81e
children 27bc5d7732a3
comparison
equal deleted inserted replaced
261:0ecd9c33fa3a 262:af3d4f11fe43
103 self.roster.requestRoster() 103 self.roster.requestRoster()
104 104
105 self.presence.available() 105 self.presence.available()
106 106
107 self.disco.requestInfo(jid.JID(self.host_app.memory.getParamA("Server", "Connection", profile_key=self.profile))).addCallback(self.host_app.serverDisco) #FIXME: use these informations 107 self.disco.requestInfo(jid.JID(self.host_app.memory.getParamA("Server", "Connection", profile_key=self.profile))).addCallback(self.host_app.serverDisco) #FIXME: use these informations
108
109 def initializationFailed(self, reason):
110 print ("initializationFailed: %s" % reason)
111 self.host_app.bridge.connection_error(self.profile,"AUTH_ERROR")
112 try:
113 client.XMPPClient.initializationFailed(self, reason)
114 except:
115 #we already send an error signal, no need to raise an exception
116 pass
108 117
109 def isConnected(self): 118 def isConnected(self):
110 return self.__connected 119 return self.__connected
111 120
112 def connectionLost(self, connector, unused_reason): 121 def connectionLost(self, connector, unused_reason):