Mercurial > libervia-backend
comparison frontends/src/jp/cmd_profile.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 | d87aa6bdb0b4 |
children | 8e0072754413 |
comparison
equal
deleted
inserted
replaced
1087:b3b7a2863060 | 1088:b29452cab50b |
---|---|
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("Server", JID(self.args.jid).domain, "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) | 99 self.host.bridge.setParam("Password", self.args.password, "Connection", profile_key=self.args.profile) |
100 self.host.quit() | 100 self.host.quit() |
101 | 101 |
102 def run(self): | 102 def run(self): |
103 """Create a new profile""" | 103 """Create a new profile""" |