comparison frontends/src/jp/cmd_profile.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
93 self.parser.add_argument('jid', type=str, help=_('the jid of the profile')) 93 self.parser.add_argument('jid', type=str, help=_('the jid of the profile'))
94 self.parser.add_argument('password', type=str, help=_('the password of the profile')) 94 self.parser.add_argument('password', type=str, help=_('the password of the profile'))
95 95
96 def _profile_created(self): 96 def _profile_created(self):
97 self.host.bridge.setParam("JabberID", self.args.jid, "Connection" ,profile_key=self.args.profile) 97 self.host.bridge.setParam("JabberID", self.args.jid, "Connection" ,profile_key=self.args.profile)
98 self.host.bridge.setParam(C.FORCE_SERVER_PARAM, JID(self.args.jid).domain, "Connection", profile_key=self.args.profile)
99 self.host.bridge.setParam("Password", self.args.password, "Connection", profile_key=self.args.profile) 98 self.host.bridge.setParam("Password", self.args.password, "Connection", profile_key=self.args.profile)
100 self.host.quit() 99 self.host.quit()
101 100
102 def run(self): 101 def run(self):
103 """Create a new profile""" 102 """Create a new profile"""