Mercurial > libervia-backend
diff frontends/wix/profile_manager.py @ 72:f271fff3a713
MUC implementation: first draft
/!\ the experimental muc branche of wokkel must be used
- bridge: new roomJoined signal
- wix: contact list widget is now in a separate file, and manage different kinds of presentation
- wix: chat window now manage group chat (first draft, not working yet)
- wix: constants are now in a separate class, so then can be accessible from everywhere
- wix: new menu to join room (do nothing yet, except entering in a test room)
- new plugin for xep 0045 (MUC), use wokkel experimental MUC branch
- plugins: the profile is now given for get_handler, cause it can be used internally by a plugin (e.g.: xep-0045 plugin)
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 21 Mar 2010 10:28:55 +1100 |
parents | 8f2ed279784b |
children | 23caf1051099 |
line wrap: on
line diff
--- a/frontends/wix/profile_manager.py Sat Mar 06 14:57:23 2010 +1100 +++ b/frontends/wix/profile_manager.py Sun Mar 21 10:28:55 2010 +1100 @@ -132,7 +132,6 @@ if name[0]=='@': wx.MessageDialog(self, _("A profile name can't start with a @"), _("Bad profile name"), wx.ICON_ERROR).ShowModal() return - profile = None # gof profile = self.host.bridge.getProfileName(name) if not profile: debug(_("The profile is new, we create it")) @@ -141,10 +140,11 @@ new_jid = self.login_jid.GetValue() new_pass = self.login_pass.GetValue() if old_jid != new_jid: - debug(_('Saving new JID')) + debug(_('Saving new JID and server')) self.host.bridge.setParam("JabberID", new_jid, "Connection", profile) + self.host.bridge.setParam("Server", JID(new_jid).domain, "Connection", profile) if old_pass != new_pass: debug(_('Saving new password')) - self.host.bridge.setParam("JabberID", new_pass, "Connection", profile) + self.host.bridge.setParam("Password", new_pass, "Connection", profile) self.host.plug_profile(name)