Merge lp://staging/~brian.curtin/ubuntu-sso-client/py3-unicode-part-2 into lp://staging/ubuntu-sso-client

Proposed by Brian Curtin
Status: Merged
Approved by: dobey
Approved revision: 988
Merged at revision: 988
Proposed branch: lp://staging/~brian.curtin/ubuntu-sso-client/py3-unicode-part-2
Merge into: lp://staging/ubuntu-sso-client
Prerequisite: lp://staging/~brian.curtin/ubuntu-sso-client/py3-unicode
Diff against target: 594 lines (+106/-78)
13 files modified
ubuntu_sso/qt/__init__.py (+5/-3)
ubuntu_sso/qt/common.py (+10/-7)
ubuntu_sso/qt/current_user_sign_in_page.py (+12/-9)
ubuntu_sso/qt/email_verification_page.py (+3/-2)
ubuntu_sso/qt/forgotten_password_page.py (+4/-3)
ubuntu_sso/qt/loadingoverlay.py (+3/-1)
ubuntu_sso/qt/main/__init__.py (+3/-3)
ubuntu_sso/qt/main/tests/test_main.py (+3/-2)
ubuntu_sso/qt/proxy_dialog.py (+5/-2)
ubuntu_sso/qt/reset_password_page.py (+12/-9)
ubuntu_sso/qt/setup_account_page.py (+31/-25)
ubuntu_sso/qt/tests/__init__.py (+13/-11)
ubuntu_sso/qt/ubuntu_sso_wizard.py (+2/-1)
To merge this branch: bzr merge lp://staging/~brian.curtin/ubuntu-sso-client/py3-unicode-part-2
Reviewer Review Type Date Requested Status
Mike McCracken (community) Approve
Alejandro J. Cura (community) Approve
Review via email: mp+116764@code.staging.launchpad.net

Commit message

The second of three changes to prepare SSO for Python 3 Unicode usage.

Description of the change

The second of three branches to prepare for Python 3's Unicode usage. This merge proposal mostly contains changes from unicode construction to the compat.text_type wrapper. There are a few StringIO changes, and only a few changes to Unicode literals. It is a follow-up to lp:~brian.curtin/ubuntu-sso-client/py3-unicode

This change covers modules in the following packages:
ubuntu_sso.qt
ubuntu_sso.main

To post a comment you must log in.
Revision history for this message
Alejandro J. Cura (alecu) wrote :

Code looks fine, and all tests pass.
While trying to test it IRL I get stuck with the progress dialog when creating a new account; but since this currently happens with both trunk and nightlies, it looks like it's not a problem with this code.

review: Approve
Revision history for this message
Mike McCracken (mikemc) wrote :

Tests pass, but IRL on darwin the captcha fails to work because it needs to use io.BytesIO instead of io.StringIO in ubuntu_sso/qt/setup_account_page.py

With that tweak, everything works for me.

Here's the traceback, for reference:
  File "/Users/mmccrack/Documents/Canonical/Source/ubuntuone-windows-installer/scripts/devsetup/parts/sso-client-py3-unicode/ubuntu_sso/qt/setup_account_page.py", line 333, in on_captcha_generated
    pil_image.save(string_io, format='png')
  File "/Users/mmccrack/Documents/Canonical/Source/ubuntuone-windows-installer/scripts/devsetup/eggs/PIL-1.1.7-py2.7-macosx-10.7-intel.egg/Image.py", line 1439, in save
    save_handler(self, fp, filename)
  File "/Users/mmccrack/Documents/Canonical/Source/ubuntuone-windows-installer/scripts/devsetup/eggs/PIL-1.1.7-py2.7-macosx-10.7-intel.egg/PngImagePlugin.py", line 514, in _save
    fp.write(_MAGIC)
exceptions.TypeError: string argument expected, got 'str'

review: Needs Fixing
Revision history for this message
Mike McCracken (mikemc) wrote :

per discussion in IRC, we'll fix the stringIO thing in a separate branch

review: Approve
Revision history for this message
Ubuntu One Auto Pilot (otto-pilot) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches