comparison src/plugins/plugin_misc_account.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 2d035aaea13b
comparison
equal deleted inserted replaced
1088:b29452cab50b 1089:8e0072754413
190 190
191 def setParams(dummy): 191 def setParams(dummy):
192 #FIXME: values must be in a config file instead of hardcoded 192 #FIXME: values must be in a config file instead of hardcoded
193 self.host.memory.setParam("JabberID", "%s@%s/%s" % (profile, self.getConfig('new_account_domain'), self.getConfig('new_account_resource')), 193 self.host.memory.setParam("JabberID", "%s@%s/%s" % (profile, self.getConfig('new_account_domain'), self.getConfig('new_account_resource')),
194 "Connection", profile_key=profile) 194 "Connection", profile_key=profile)
195 self.host.memory.setParam(C.FORCE_SERVER_PARAM, self.getConfig('new_account_server'),
196 "Connection", profile_key=profile)
197 self.host.memory.setParam("Password", password, 195 self.host.memory.setParam("Password", password,
198 "Connection", profile_key=profile) 196 "Connection", profile_key=profile)
199 197
200 def removeProfile(failure): 198 def removeProfile(failure):
201 self.host.memory.asyncDeleteProfile(profile) 199 self.host.memory.asyncDeleteProfile(profile)