comparison frontends/src/primitivus/profile_manager.py @ 1089:8e0072754413

core, plugins, stdui, frontends: fixes handling of "Force server" and "Force port" parameters: - do not save a "guessed" value, they must stay empty until the user explicitely sets them - add constant XMPP_C2S_PORT (default value 5222)
author souliane <souliane@mailoo.org>
date Mon, 23 Jun 2014 10:23:13 +0200
parents b29452cab50b
children 75025461141f
comparison
equal deleted inserted replaced
1088:b29452cab50b 1089:8e0072754413
165 new_jid = self.login_wid.get_edit_text() 165 new_jid = self.login_wid.get_edit_text()
166 new_pass = self.pass_wid.get_edit_text() 166 new_pass = self.pass_wid.get_edit_text()
167 167
168 if old_jid != new_jid: 168 if old_jid != new_jid:
169 self.host.bridge.setParam("JabberID", new_jid, "Connection", profile_key=profile) 169 self.host.bridge.setParam("JabberID", new_jid, "Connection", profile_key=profile)
170 self.host.bridge.setParam(C.FORCE_SERVER_PARAM, JID(new_jid).domain, "Connection", profile_key=profile)
171 if old_pass != new_pass: 170 if old_pass != new_pass:
172 self.host.bridge.setParam("Password", new_pass, "Connection", profile_key=profile) 171 self.host.bridge.setParam("Password", new_pass, "Connection", profile_key=profile)
173 self.host.plug_profile(profile) 172 self.host.plug_profile(profile)
174 173
175 def getParamError(self, ignore): 174 def getParamError(self, ignore):