~mvo/ubuntu-sso-client/lp711413

« back to all changes in this revision

Viewing changes to ubuntu_sso/main/__init__.py

  • Committer: Tarmac
  • Author(s): Manuel de la Pena
  • Date: 2012-05-21 14:55:49 UTC
  • mfrom: (956.1.4 darwin-ac-cmdline)
  • Revision ID: tarmac-20120521145549-kvq3znb63lk4iipk
- Moved the code out to a function so that it can be called from other projects (LP: #1002307).

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
else:
95
95
    from ubuntu_sso.main import linux as source
96
96
 
 
97
    source.get_activation_cmdline = lambda *args: None
 
98
 
97
99
UbuntuSSOClient = source.UbuntuSSOClient
98
100
UbuntuSSOProxy = source.UbuntuSSOProxy
99
101
get_sso_client = source.get_sso_client
 
102
get_activation_cmdline = source.get_activation_cmdline
100
103
 
101
104
 
102
105
def except_to_errdict(e):