Mercurial > libervia-backend
diff frontends/wix/profile_manager.py @ 89:23caf1051099
multi-profile/subscription misc fixes
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 13 May 2010 16:27:48 +0930 |
parents | f271fff3a713 |
children | e5ca22113280 |
line wrap: on
line diff
--- a/frontends/wix/profile_manager.py Wed May 12 11:55:18 2010 +0930 +++ b/frontends/wix/profile_manager.py Thu May 13 16:27:48 2010 +0930 @@ -133,12 +133,12 @@ wx.MessageDialog(self, _("A profile name can't start with a @"), _("Bad profile name"), wx.ICON_ERROR).ShowModal() return profile = self.host.bridge.getProfileName(name) - if not profile: - debug(_("The profile is new, we create it")) + assert(profile) old_jid = self.host.bridge.getParamA("JabberID", "Connection", profile_key=profile) old_pass = self.host.bridge.getParamA("Password", "Connection", profile_key=profile) new_jid = self.login_jid.GetValue() new_pass = self.login_pass.GetValue() + print "old: %s, new: %s, old_pass: %s, new_pass: %s" % (old_jid, new_jid, old_pass, new_pass) if old_jid != new_jid: debug(_('Saving new JID and server')) self.host.bridge.setParam("JabberID", new_jid, "Connection", profile) @@ -146,5 +146,5 @@ if old_pass != new_pass: debug(_('Saving new password')) self.host.bridge.setParam("Password", new_pass, "Connection", profile) - self.host.plug_profile(name) + self.host.plug_profile(profile)