Mercurial > libervia-backend
diff frontends/wix/main_window.py @ 89:23caf1051099
multi-profile/subscription misc fixes
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 13 May 2010 16:27:48 +0930 |
parents | fc7583282d40 |
children | 4020931569b8 |
line wrap: on
line diff
--- a/frontends/wix/main_window.py Wed May 12 11:55:18 2010 +0930 +++ b/frontends/wix/main_window.py Thu May 13 16:27:48 2010 +0930 @@ -118,6 +118,7 @@ def plug_profile(self, profile_key='@DEFAULT@'): """Hide profile panel then plug profile""" + debug (_('plugin profile %s' % profile_key)) self.profile_pan.Hide() self.contactList.Show() self.sizer.Layout() @@ -330,7 +331,7 @@ def __updateStatus(self): show = filter(lambda x:x[1] == self.statusBox.GetValue(), const_STATUS)[0][0] status = self.statusTxt.GetValue() - self.bridge.setPresence(show=show, statuses={'default':status}) #FIXME: manage multilingual statuses + self.bridge.setPresence(show=show, statuses={'default':status}, profile_key=self.profile) #FIXME: manage multilingual statuses def onStatusChange(self, e): debug(_("Status change request")) @@ -352,7 +353,7 @@ if dlg.ShowModal() == wx.ID_OK: jid=JID(dlg.GetValue()) if jid.is_valid(): - self.bridge.addContact(jid.short) + self.bridge.addContact(jid.short, profile_key=self.profile) else: error (_("'%s' is an invalid JID !"), jid) #TODO: notice the user @@ -378,7 +379,7 @@ if dlg.ShowModal() == wx.ID_YES: info(_("Unsubscribing %s presence"), target.short) - self.bridge.delContact(target.short) + self.bridge.delContact(target.short, profile_key=self.profile) dlg.Destroy() @@ -393,7 +394,7 @@ dlg.ShowModal() dlg.Destroy() return - id = self.bridge.getCard(target.short) + id = self.bridge.getCard(target.short, profile_key=self.profile) self.current_action_ids.add(id) self.current_action_ids_cb[id] = self.onProfileReceived