# HG changeset patch # User souliane # Date 1448871923 -3600 # Node ID bc7e3ff3c83820b20d50aaabc5bc7a7bc42b6005 # Parent 23560a1cd3976ec7f41f21a3004849d01776c8f4 jp (profile): fixed creating profile with given JID and XMPP password diff -r 23560a1cd397 -r bc7e3ff3c838 frontends/src/jp/cmd_profile.py --- a/frontends/src/jp/cmd_profile.py Sun Nov 29 22:57:11 2015 +0100 +++ b/frontends/src/jp/cmd_profile.py Mon Nov 30 09:25:23 2015 +0100 @@ -121,7 +121,7 @@ self.parser.add_argument('-x', '--xmpp-password', type=str, help=_('the password of the XMPP account (use profile password if not specified)'), metavar='PASSWORD') - def _profile_created(self): + def _session_started(self, dummy): if self.args.jid: self.host.bridge.setParam("JabberID", self.args.jid, "Connection" ,profile_key=self.args.profile) xmpp_pwd = self.args.password or self.args.xmpp_password @@ -129,6 +129,9 @@ self.host.bridge.setParam("Password", xmpp_pwd, "Connection", profile_key=self.args.profile) self.host.quit() + def _profile_created(self): + self.host.bridge.profileStartSession(self.args.password, self.args.profile, callback=self._session_started, errback=None) + def run(self): """Create a new profile""" self.need_loop = True