comparison src/plugins/plugin_misc_account.py @ 1088:b29452cab50b

core, memory, plugins, stdui, frontends: look for DNS SRV records when server is not specified: - fix bug 3 - modify "Connection" params: - rename "Server" to "Force server" and "Port" to "Force port" - set the default value to empty string for both
author souliane <souliane@mailoo.org>
date Mon, 23 Jun 2014 00:44:10 +0200
parents f25ec9fd7cc4
children 8e0072754413
comparison
equal deleted inserted replaced
1087:b3b7a2863060 1088:b29452cab50b
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("Server", self.getConfig('new_account_server'), 195 self.host.memory.setParam(C.FORCE_SERVER_PARAM, self.getConfig('new_account_server'),
196 "Connection", profile_key=profile) 196 "Connection", profile_key=profile)
197 self.host.memory.setParam("Password", password, 197 self.host.memory.setParam("Password", password,
198 "Connection", profile_key=profile) 198 "Connection", profile_key=profile)
199 199
200 def removeProfile(failure): 200 def removeProfile(failure):