Merge lp:~brendan-donegan/checkbox/bug1173103_user_interface_showSubmitToHexr into lp:checkbox

Proposed by Brendan Donegan
Status: Merged
Approved by: Zygmunt Krynicki
Approved revision: 2089
Merged at revision: 2089
Proposed branch: lp:~brendan-donegan/checkbox/bug1173103_user_interface_showSubmitToHexr
Merge into: lp:checkbox
Diff against target: 40 lines (+5/-3)
3 files modified
checkbox/user_interface.py (+2/-2)
checkbox_cli/cli_interface.py (+1/-1)
debian/changelog (+2/-0)
To merge this branch: bzr merge lp:~brendan-donegan/checkbox/bug1173103_user_interface_showSubmitToHexr
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Approve
Review via email: mp+161083@code.launchpad.net

Description of the change

There were a couple of latent issues left in some of the UI modules after the submitToHexr work. First, user_interface.py used the wrong keyword argument, and second cli_interface.py didn't return a tuple. This branch fixes both of these issues.

To post a comment you must log in.
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'checkbox/user_interface.py'
--- checkbox/user_interface.py 2013-04-24 13:45:51 +0000
+++ checkbox/user_interface.py 2013-04-26 09:49:28 +0000
@@ -131,8 +131,8 @@
131 def show_text(self, text, previous=None, next=None):131 def show_text(self, text, previous=None, next=None):
132 return132 return
133133
134 def show_entry(self, text, value, label=None, submitToHexr=False, previous=None, next=None):134 def show_entry(self, text, value, label=None, showSubmitToHexr=False, previous=None, next=None):
135 return (value, submitToHexr)135 return (value, False)
136136
137 def show_check(self, text, options=[], default=[]):137 def show_check(self, text, options=[], default=[]):
138 return default138 return default
139139
=== modified file 'checkbox_cli/cli_interface.py'
--- checkbox_cli/cli_interface.py 2013-04-24 13:45:51 +0000
+++ checkbox_cli/cli_interface.py 2013-04-26 09:49:28 +0000
@@ -345,7 +345,7 @@
345 def show_entry(self, text, value, showSubmitToHexr=False, label=None, previous=None, next=None):345 def show_entry(self, text, value, showSubmitToHexr=False, label=None, previous=None, next=None):
346 dialog = CLILineDialog(text)346 dialog = CLILineDialog(text)
347347
348 return dialog.run()348 return (dialog.run(), False)
349349
350 def show_check(self, text, options=[], default=[]):350 def show_check(self, text, options=[], default=[]):
351 dialog = CLIChoiceDialog(text)351 dialog = CLIChoiceDialog(text)
352352
=== modified file 'debian/changelog'
--- debian/changelog 2013-04-25 20:25:06 +0000
+++ debian/changelog 2013-04-26 09:49:28 +0000
@@ -3,6 +3,8 @@
3 [ Brendan Donegan ]3 [ Brendan Donegan ]
4 * Add hidden 'Submit to HEXR' checkbox on submission screen, so that it can4 * Add hidden 'Submit to HEXR' checkbox on submission screen, so that it can
5 be utilised in checkbox-certification.5 be utilised in checkbox-certification.
6 * checkbox/user_interface.py - fixed keyword argument in show_entry.
7 checkbox_cli/cli_interface.py - return tuple as expected. (LP: #1173103)
68
7 [ Po-Hsu Lin]9 [ Po-Hsu Lin]
8 * jobs/led.txt.in: Modified the description of led/power-blink-suspend test to10 * jobs/led.txt.in: Modified the description of led/power-blink-suspend test to

Subscribers

People subscribed via source and target branches