tools: renamed tools.jid.JID attribute "short" to "bare"
This commit is contained in:
parent
a154d9acbb
commit
36cea6fc91
1 changed files with 94 additions and 94 deletions
|
|
@ -339,10 +339,10 @@ class MainWindow(wx.Frame, QuickApp):
|
|||
|
||||
def onContactActivated(self, jid):
|
||||
debug (_("onContactActivated: %s"), jid)
|
||||
if self.chat_wins[jid.short].IsShown():
|
||||
self.chat_wins[jid.short].Hide()
|
||||
if self.chat_wins[jid.bare].IsShown():
|
||||
self.chat_wins[jid.bare].Hide()
|
||||
else:
|
||||
self.chat_wins[jid.short].Show()
|
||||
self.chat_wins[jid.bare].Show()
|
||||
|
||||
def onConnectRequest(self, e):
|
||||
self.bridge.connect(self.profile)
|
||||
|
|
@ -394,7 +394,7 @@ class MainWindow(wx.Frame, QuickApp):
|
|||
if dlg.ShowModal() == wx.ID_OK:
|
||||
jid=JID(dlg.GetValue())
|
||||
if jid.is_valid():
|
||||
self.bridge.addContact(jid.short, profile_key=self.profile)
|
||||
self.bridge.addContact(jid.bare, profile_key=self.profile)
|
||||
else:
|
||||
error (_("'%s' is an invalid JID !"), jid)
|
||||
#TODO: notice the user
|
||||
|
|
@ -413,14 +413,14 @@ class MainWindow(wx.Frame, QuickApp):
|
|||
dlg.Destroy()
|
||||
return
|
||||
|
||||
dlg = wx.MessageDialog(self, _("Are you sure you want to delete %s from your roster list ?") % target.short,
|
||||
dlg = wx.MessageDialog(self, _("Are you sure you want to delete %s from your roster list ?") % target.bare,
|
||||
_('Contact suppression'),
|
||||
wx.YES_NO | wx.ICON_QUESTION
|
||||
)
|
||||
|
||||
if dlg.ShowModal() == wx.ID_YES:
|
||||
info(_("Unsubscribing %s presence"), target.short)
|
||||
self.bridge.delContact(target.short, profile_key=self.profile)
|
||||
info(_("Unsubscribing %s presence"), target.bare)
|
||||
self.bridge.delContact(target.bare, profile_key=self.profile)
|
||||
|
||||
dlg.Destroy()
|
||||
|
||||
|
|
@ -435,7 +435,7 @@ class MainWindow(wx.Frame, QuickApp):
|
|||
dlg.ShowModal()
|
||||
dlg.Destroy()
|
||||
return
|
||||
_id = self.bridge.getCard(target.short, profile_key=self.profile)
|
||||
_id = self.bridge.getCard(target.bare, profile_key=self.profile)
|
||||
self.current_action_ids.add(_id)
|
||||
self.current_action_ids_cb[_id] = self.onProfileReceived
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue