~ssweeny/friends/fix-lp1258657

« back to all changes in this revision

Viewing changes to friends/utils/base.py

  • Committer: Robert Bruce Park
  • Date: 2013-03-19 20:12:10 UTC
  • mto: (188.5.10 friends)
  • mto: This revision was merged to the branch mainline in revision 201.
  • Revision ID: robert.park@canonical.com-20130319201210-epsi4ed5sqc59ktp
De-twingle our Account wrapper class from the Authentication class.

This means our Authentication code functions directly on accounts-sso
API calls, with one less layer of glue obfuscating everything.

Show diffs side-by-side

added added

removed removed

Lines of Context:
472
472
        log.debug('{} to {}'.format(
473
473
                'Re-authenticating' if old_token else 'Logging in', self._Name))
474
474
 
475
 
        result = Authentication(self._account).login()
 
475
        result = Authentication(self._account.id).login()
476
476
 
477
477
        self._account.access_token = result.get('AccessToken')
478
478
        self._whoami(result)