Merge lp:~ralsina/ubuntu-sso-client/fix_show_gui into lp:ubuntu-sso-client

Proposed by Roberto Alsina
Status: Merged
Approved by: Roberto Alsina
Approved revision: 753
Merged at revision: 752
Proposed branch: lp:~ralsina/ubuntu-sso-client/fix_show_gui
Merge into: lp:ubuntu-sso-client
Diff against target: 36 lines (+16/-5)
1 file modified
ubuntu_sso/qt/tests/show_gui.py (+16/-5)
To merge this branch: bzr merge lp:~ralsina/ubuntu-sso-client/fix_show_gui
Reviewer Review Type Date Requested Status
Diego Sarmentero (community) Approve
Review via email: mp+70202@code.launchpad.net

Commit message

Use CredentialsManagementClient instead of the deprecated API

Description of the change

Use CredentialsManagementClient instead of the deprecated API

To post a comment you must log in.
Revision history for this message
Diego Sarmentero (diegosarmentero) wrote :

+1

(just a comment: is the print statement necessary?
It's not part of this branch changes, but you can see it at the end.)

review: Approve
Revision history for this message
Roberto Alsina (ralsina) wrote :

> +1
>
> (just a comment: is the print statement necessary?
> It's not part of this branch changes, but you can see it at the end.)

Not necessary but well, it was there already.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ubuntu_sso/qt/tests/show_gui.py'
--- ubuntu_sso/qt/tests/show_gui.py 2011-06-30 03:46:20 +0000
+++ ubuntu_sso/qt/tests/show_gui.py 2011-08-02 18:27:38 +0000
@@ -20,6 +20,12 @@
20from twisted.internet import reactor20from twisted.internet import reactor
21from twisted.internet.defer import inlineCallbacks21from twisted.internet.defer import inlineCallbacks
22from ubuntu_sso.main.windows import UbuntuSSOClient22from ubuntu_sso.main.windows import UbuntuSSOClient
23from ubuntu_sso.credentials import (
24 TC_URL_KEY,
25 HELP_TEXT_KEY,
26 WINDOW_ID_KEY,
27 UI_MODULE_KEY,
28)
2329
2430
25def found(*args):31def found(*args):
@@ -33,11 +39,16 @@
33 """Perform a client request to be logged in."""39 """Perform a client request to be logged in."""
34 client = UbuntuSSOClient()40 client = UbuntuSSOClient()
35 client = yield client.connect()41 client = yield client.connect()
36 client.sso_cred.on_credentials_found_cb = found42 client.cred_management.on_credentials_found_cb = found
37 yield client.sso_cred.register_to_signals()43 yield client.cred_management.register_to_signals()
38 yield client.sso_cred.login_or_register_to_get_credentials('Ubuntu One',44 yield client.cred_management.login(
39 'http://www.google.com',45 'Ubuntu One',
40 'This is a test.', 0)46 {
47 TC_URL_KEY: 'http://www.google.com',
48 HELP_TEXT_KEY: 'This is a test.',
49 WINDOW_ID_KEY: 0,
50 UI_MODULE_KEY: 'ubuntu_sso.qt.gui',
51 })
41 print "called ok"52 print "called ok"
4253
4354

Subscribers

People subscribed via source and target branches