~gary-lasker/software-center/replace-restfulclient-with-piston-tweaks

« back to all changes in this revision

Viewing changes to softwarecenter/backend/login_sso.py

  • Committer: Michael Vogt
  • Date: 2012-01-05 09:53:52 UTC
  • Revision ID: michael.vogt@ubuntu.com-20120105095352-hx7a9zh3s8z2xwn6
test fixes, testsuite passes now *except* that the GObject.thread_init() is needed to use threads but if its used it will causes segfaults on exit

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
        self.proxy.register(self.appname, self._get_params())
74
74
 
75
75
    def _on_credentials_found(self, app_name, credentials):
 
76
        LOG.debug("_on_credentials_found for '%s'" % app_name)
76
77
        if app_name != self.appname:
77
78
            return
78
79
        # only emit signal here once, otherwise it may happen that a
156
157
    return sso_class
157
158
   
158
159
if __name__ == "__main__":
 
160
    logging.basicConfig(level=logging.DEBUG)
 
161
 
159
162
    from softwarecenter.enums import SOFTWARE_CENTER_NAME_KEYRING
160
163
    login = get_sso_backend(0, SOFTWARE_CENTER_NAME_KEYRING, "login-text")
161
164
    login.login()