comparison frontends/src/wix/main_window.py @ 491:1e4731f1e1d7

wix: renamed id variable to avoid reserved name
author Goffi <goffi@goffi.org>
date Fri, 17 Aug 2012 03:13:08 +0200
parents 2a072735e459
children e9634d2e7b38
comparison
equal deleted inserted replaced
490:b9925a2758c3 491:1e4731f1e1d7
440 wx.OK | wx.ICON_ERROR 440 wx.OK | wx.ICON_ERROR
441 ) 441 )
442 dlg.ShowModal() 442 dlg.ShowModal()
443 dlg.Destroy() 443 dlg.Destroy()
444 return 444 return
445 id = self.bridge.getCard(target.short, profile_key=self.profile) 445 _id = self.bridge.getCard(target.short, profile_key=self.profile)
446 self.current_action_ids.add(id) 446 self.current_action_ids.add(_id)
447 self.current_action_ids_cb[id] = self.onProfileReceived 447 self.current_action_ids_cb[_id] = self.onProfileReceived
448 448
449 def onProfileReceived(self, data): 449 def onProfileReceived(self, data):
450 """Called when a profile is received""" 450 """Called when a profile is received"""
451 debug (_('Profile received: [%s]') % data) 451 debug (_('Profile received: [%s]') % data)
452 profile=Profile(self, data) 452 profile=Profile(self, data)
465 else: 465 else:
466 error (_("'%s' is an invalid JID !"), room_jid) 466 error (_("'%s' is an invalid JID !"), room_jid)
467 467
468 def onFindGateways(self, e): 468 def onFindGateways(self, e):
469 debug(_("Find Gateways request")) 469 debug(_("Find Gateways request"))
470 id = self.bridge.findGateways(self.profiles[self.profile]['whoami'].domain, self.profile) 470 _id = self.bridge.findGateways(self.profiles[self.profile]['whoami'].domain, self.profile)
471 self.current_action_ids.add(id) 471 self.current_action_ids.add(_id)
472 self.current_action_ids_cb[id] = self.onGatewaysFound 472 self.current_action_ids_cb[_id] = self.onGatewaysFound
473 473
474 def onGatewaysFound(self, data): 474 def onGatewaysFound(self, data):
475 """Called when SàT has found the server gateways""" 475 """Called when SàT has found the server gateways"""
476 target = data['__private__']['target'] 476 target = data['__private__']['target']
477 del data['__private__'] 477 del data['__private__']