comparison sat.tac @ 155:61f1e509e684

SàT: fixed exception when using unmanaged IQ
author Goffi <goffi@goffi.org>
date Wed, 04 Aug 2010 11:58:54 +0800
parents 7452ac3818e7
children 12544ea2951f
comparison
equal deleted inserted replaced
154:c701f3031ada 155:61f1e509e684
241 class SatFallbackHandler(generic.FallbackHandler): 241 class SatFallbackHandler(generic.FallbackHandler):
242 def __init__(self, host): 242 def __init__(self, host):
243 generic.FallbackHandler.__init__(self) 243 generic.FallbackHandler.__init__(self)
244 244
245 def iqFallback(self, iq): 245 def iqFallback(self, iq):
246 print "iqFallback: xml = [%s], handled=%s" % (iq.toXml(), "True" if iq.handled else "False") 246 debug (u"iqFallback: xml = [%s], handled=%s" % (iq.toXml(), "True" if iq.handled else "False"))
247 generic.FallbackHandler.iqFallback(self, iq) 247 generic.FallbackHandler.iqFallback(self, iq)
248 248
249 class RegisteringAuthenticator(xmlstream.ConnectAuthenticator): 249 class RegisteringAuthenticator(xmlstream.ConnectAuthenticator):
250 250
251 def __init__(self, host, jabber_host, user_login, user_pass, answer_id): 251 def __init__(self, host, jabber_host, user_login, user_pass, answer_id):