comparison src/core/xmpp.py @ 567:01569aa4d7aa

core: initial discovery fix
author Goffi <goffi@goffi.org>
date Mon, 07 Jan 2013 00:58:43 +0100
parents 0bb2e0d1c878
children ca13633d3b6b
comparison
equal deleted inserted replaced
566:9faccd827657 567:01569aa4d7aa
71 71
72 self.roster.requestRoster() 72 self.roster.requestRoster()
73 73
74 self.presence.available() 74 self.presence.available()
75 75
76 self.disco.requestInfo(jid.JID(self.host_app.memory.getParamA("Server", "Connection", profile_key=self.profile))).addCallback(self.host_app.serverDisco, self.profile) #FIXME: use these informations 76 self.disco.requestInfo(jid.JID(self.jid.host)).addCallback(self.host_app.serverDisco, self.profile) #FIXME: use these informations
77 self.disco.requestItems(jid.JID(self.host_app.memory.getParamA("Server", "Connection", profile_key=self.profile))).addCallback(self.host_app.serverDiscoItems, self.disco, self.profile, self.client_initialized) 77
78 self.disco.requestItems(jid.JID(self.jid.host)).addCallback(self.host_app.serverDiscoItems, self.disco, self.profile, self.client_initialized)
78 self.conn_deferred.callback(None) 79 self.conn_deferred.callback(None)
79 80
80 def initializationFailed(self, reason): 81 def initializationFailed(self, reason):
81 print ("initializationFailed: %s" % reason) 82 print ("initializationFailed: %s" % reason)
82 self.host_app.bridge.connectionError("AUTH_ERROR", self.profile) 83 self.host_app.bridge.connectionError("AUTH_ERROR", self.profile)