Merge lp:~diegosarmentero/ubuntuone-windows-installer/847796 into lp:ubuntuone-windows-installer

Proposed by Diego Sarmentero
Status: Merged
Approved by: Natalia Bidart
Approved revision: 60
Merged at revision: 62
Proposed branch: lp:~diegosarmentero/ubuntuone-windows-installer/847796
Merge into: lp:ubuntuone-windows-installer
Diff against target: 23 lines (+2/-0)
2 files modified
ubuntuone_installer/gui/qt/setup_account.py (+1/-0)
ubuntuone_installer/gui/qt/tests/test_gui.py (+1/-0)
To merge this branch: bzr merge lp:~diegosarmentero/ubuntuone-windows-installer/847796
Reviewer Review Type Date Requested Status
Roberto Alsina (community) Approve
Natalia Bidart (community) Approve
Review via email: mp+75158@code.launchpad.net

Commit message

Fixed: Setup account button can be clicked with no data

Description of the change

Fixed: Setup account button can be clicked with no data

To post a comment you must log in.
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

The code looks good.

While testing it IRL, I got this trace:

2011-09-13 11:54:32,773:773.999929428 - ubuntu_sso.controllers - DEBUG - SetUpAc
countController.is_correct_password_confirmation
Traceback (most recent call last):
  File "E:\ussoc\trunk\ubuntu_sso\qt\controllers.py", line 358, in _enable_setup
_button
    self.view.wizard().button(self.set_up_account).setEnabled(enabled)
TypeError: QWidget.setEnabled(bool): argument 1 has unexpected type 'unicode'

Shall we fix that in this branch?

review: Needs Information
Revision history for this message
Diego Sarmentero (diegosarmentero) wrote :

> The code looks good.
>
> While testing it IRL, I got this trace:
>
> 2011-09-13 11:54:32,773:773.999929428 - ubuntu_sso.controllers - DEBUG -
> SetUpAc
> countController.is_correct_password_confirmation
> Traceback (most recent call last):
> File "E:\ussoc\trunk\ubuntu_sso\qt\controllers.py", line 358, in
> _enable_setup
> _button
> self.view.wizard().button(self.set_up_account).setEnabled(enabled)
> TypeError: QWidget.setEnabled(bool): argument 1 has unexpected type 'unicode'
>
> Shall we fix that in this branch?

This bug is from SSO and it is fixed in another branch

Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Approving then!

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

+1 allowing for the mentioned above

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ubuntuone_installer/gui/qt/setup_account.py'
--- ubuntuone_installer/gui/qt/setup_account.py 2011-09-12 19:34:20 +0000
+++ ubuntuone_installer/gui/qt/setup_account.py 2011-09-13 11:24:24 +0000
@@ -101,6 +101,7 @@
101 self.setButtonText(QtGui.QWizard.CustomButton3, _('Set Up Account'))101 self.setButtonText(QtGui.QWizard.CustomButton3, _('Set Up Account'))
102 self.set_up_button = self.wizard().button(QtGui.QWizard.CustomButton3)102 self.set_up_button = self.wizard().button(QtGui.QWizard.CustomButton3)
103 self.set_up_button.clicked.connect(self.wizard().overlay.show)103 self.set_up_button.clicked.connect(self.wizard().overlay.show)
104 self.set_up_button.setEnabled(False)
104105
105 self.ui.name_label.setText(NAME)106 self.ui.name_label.setText(NAME)
106 self.ui.email_label.setText(EMAIL)107 self.ui.email_label.setText(EMAIL)
107108
=== modified file 'ubuntuone_installer/gui/qt/tests/test_gui.py'
--- ubuntuone_installer/gui/qt/tests/test_gui.py 2011-09-12 18:49:40 +0000
+++ ubuntuone_installer/gui/qt/tests/test_gui.py 2011-09-13 11:24:24 +0000
@@ -168,6 +168,7 @@
168 self.ui.restart()168 self.ui.restart()
169 self.ui.show()169 self.ui.show()
170 self.addCleanup(self.ui.hide)170 self.addCleanup(self.ui.hide)
171 self.assertFalse(setup_page.set_up_button.isEnabled())
171 self.assertFalse(setup_page.ui.name_assistance.isVisible())172 self.assertFalse(setup_page.ui.name_assistance.isVisible())
172 self.assertFalse(setup_page.ui.email_assistance.isVisible())173 self.assertFalse(setup_page.ui.email_assistance.isVisible())
173 self.assertFalse(setup_page.ui.confirm_email_assistance.isVisible())174 self.assertFalse(setup_page.ui.confirm_email_assistance.isVisible())

Subscribers

People subscribed via source and target branches