~mvo/software-center/python3

« back to all changes in this revision

Viewing changes to softwarecenter/backend/login_sso.py

  • Committer: Michael Vogt
  • Date: 2012-04-20 09:41:25 UTC
  • mfrom: (2976.4.12 software-center)
  • Revision ID: michael.vogt@ubuntu.com-20120420094125-di9sda80xk7k6nx4
merged lp:~gary-lasker/software-center/recommendations-sso-login-lp973612 with a FIXME for the race condition when the network state changed between the API call and the check in the code

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
        self._credentials = credentials
86
86
 
87
87
    def _on_credentials_error(self, app_name, error, detailed_error=""):
88
 
        LOG.error("_on_credentails_error for %s: %s (%s)" % (
 
88
        LOG.error("_on_credentials_error for %s: %s (%s)" % (
89
89
                app_name, error, detailed_error))
90
90
        if app_name != self.appname:
91
91
            return
93
93
        self.emit("login-failed")
94
94
 
95
95
    def _on_authorization_denied(self, app_name):
96
 
        LOG.error("_on_authorization_denied: %s" % app_name)
 
96
        LOG.info("_on_authorization_denied: %s" % app_name)
97
97
        if app_name != self.appname:
98
98
            return
99
99
        self.cancel_login()
 
100
        self.emit("login-canceled")
100
101
 
101
102
 
102
103
class LoginBackendDbusSSOFake(LoginBackend):