Mercurial > libervia-backend
diff frontends/src/quick_frontend/quick_app.py @ 1034:5197600a1e13
quick_app, primitivus: update the connection mechanism to ask for non empty profile passwords
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 07 May 2014 16:11:32 +0200 |
parents | 6a16ec17a458 |
children | 066308706dc6 |
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py Wed May 07 16:10:20 2014 +0200 +++ b/frontends/src/quick_frontend/quick_app.py Wed May 07 16:11:32 2014 +0200 @@ -136,6 +136,9 @@ if self.single_profile: self.profile = profile + self.launchAction(C.AUTHENTICATE_PROFILE_ID, {'caller': 'plug_profile'}, profile_key=profile) + + def plug_profile_1(self, profile): ###now we get the essential params### self.bridge.asyncGetParamA("JabberID", "Connection", profile_key=profile, callback=lambda _jid: self.plug_profile_2(_jid, profile), errback=self._getParamError) @@ -152,7 +155,7 @@ def plug_profile_4(self, watched, autoconnect, profile): if autoconnect and not self.bridge.isConnected(profile): #Does the user want autoconnection ? - self.bridge.asyncConnect(profile, callback=lambda: self.plug_profile_5(watched, autoconnect, profile), errback=lambda ignore: log.error(_('Error during autoconnection'))) + self.bridge.asyncConnect(profile, callback=lambda dummy: self.plug_profile_5(watched, autoconnect, profile), errback=lambda ignore: log.error(_('Error during autoconnection'))) else: self.plug_profile_5(watched, autoconnect, profile)