~nataliabidart/ubuntuone-client/login-email-password-for-everyone

« back to all changes in this revision

Viewing changes to ubuntuone/platform/credentials/windows.py

  • Committer: Tarmac
  • Author(s): Natalia B. Bidart
  • Date: 2011-08-17 14:08:54 UTC
  • mfrom: (1106.1.7 platform-details)
  • Revision ID: tarmac-20110817140854-sqatv0i3tgpvutfp
- Platform details are now sent in the PING_URL (LP: #827343).

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    PING_URL_KEY,
28
28
    TC_URL_KEY,
29
29
)
30
 
from ubuntuone.credentials import (
31
 
    CredentialsManagementToolRoot,
 
30
from ubuntuone.platform.credentials import (
32
31
    APP_NAME,
33
32
    DESCRIPTION,
34
33
    NO_OP,
35
34
    PING_URL,
36
35
    TC_URL,
37
36
)
38
 
from ubuntuone.credentials import CredentialsError as CredentialsErrorRoot
39
 
 
40
 
CredentialsError = CredentialsErrorRoot
41
37
 
42
38
 
43
39
class RemovableSignal(object):
144
140
 
145
141
@defer.inlineCallbacks
146
142
def get_creds_proxy():
147
 
    """Get the CredentialsManagement dbus proxy."""
 
143
    """Get the CredentialsManagement proxy."""
148
144
    client = UbuntuSSOClient()
149
145
    client = yield client.connect()
150
146
    yield client.cred_management.register_to_signals()
151
147
    defer.returnValue(CredentialsManagement(client.cred_management))
152
 
 
153
 
 
154
 
class CredentialsManagementTool(CredentialsManagementToolRoot):
155
 
    """Wrapper used to manage the creds of ubuntu one."""
156
 
 
157
 
    def __init__(self):
158
 
        """Create a new instance."""
159
 
        super(CredentialsManagementTool, self).__init__(get_creds_proxy)