Merge lp:~oem-qa/checkbox/patch_apport_interface_yesno into lp:checkbox

Proposed by Javier Collado
Status: Merged
Merged at revision: 938
Proposed branch: lp:~oem-qa/checkbox/patch_apport_interface_yesno
Merge into: lp:checkbox
Diff against target: 14 lines (+5/-0)
1 file modified
plugins/apport_prompt.py (+5/-0)
To merge this branch: bzr merge lp:~oem-qa/checkbox/patch_apport_interface_yesno
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Review via email: mp+38859@code.launchpad.net

Description of the change

ui_question_yesno method added to ApportInterface class

This method can be used both by hooks and symptom files. If any of them tries to call that method when reporting a bug from checkbox using apport, then a NotImplementedError exception will be raised and the bug won't be reported.

To post a comment you must log in.
859. By Marc Tardif

Merged from cli_no_answer branch.

860. By Marc Tardif

Changed connection request back to use the full url instead rather than the path.

861. By Marc Tardif

Replaced external plugin with remote plugin in autotest and ltp scripts.

862. By Marc Tardif

Merged from testsprint-checkbox-base-sru-changes.

863. By Marc Tardif

Updated parsing of config parameters which fixes bug #689140.

864. By Marc Tardif

Merged from trunk.

865. By Marc Tardif

Merged from whitelist_file_comments_support.

866. By Marc Tardif

Fixed jobs_info plugin to strip commented lines in whitelist and blacklist files which might start with a space.

867. By Marc Tardif

Added additional logging to the reactor when firing messages.

868. By Marc Tardif

Merged from checkbox-add-pm-utils-requirement branch.

869. By Marc Tardif

Added support for TOUCH devices.

870. By Jeff Lane 

Merged cr3s fix for bug #561816

871. By Marc Tardif

Merged from bladernr to add _attachment suffix and lsmod attachment.

872. By Marc Tardif

Updated pot file.

873. By Marc Tardif

Fixed memory persistence to be rooted like file persistence.

874. By Marc Tardif

Fixed persist module to support not being given a filename.

875. By Marc Tardif

Extended persist_info plugin to answer to both begin and prompt-begin messages.

876. By Marc Tardif

Added support for Python 2.5 in checkbox.lib.transport.

877. By Marc Tardif

Merged from audio_test_failing branch.

878. By Marc Tardif

Merged from syslog branch.

879. By Marc Tardif

Added stop signal when executing messages.

880. By Marc Tardif

Migrated UI from libglade to gtkbuilder which fixes bug #403534.

881. By Marc Tardif

Defining default options in checkbox.application rather than CHECKBOX_OPTIONS environment variable.

882. By Marc Tardif

Added changelog entry for candidate revision.

883. By Marc Tardif

Merged from 719552.

884. By Marc Tardif

Changed description of nautilus_file_copy job which fixes bug #709688.

885. By Marc Tardif

Fixed title in progress dialog.

886. By Marc Tardif

Updated changelog with new upstream release.

887. By Marc Tardif

Updated pot file.

888. By Marc Tardif

Merged from 727411.

889. By Marc Tardif

Merged from 691241.

890. By Marc Tardif

Added support for trying to submit twice which fixes bug #531010.

891. By Marc Tardif

Merged from 642001.

892. By Jeff Lane 

Merged cli-cleanup for bug #221400

893. By Marc Tardif

Merged from checkbox-bug-fixes.

894. By Jeff Lane 

Land translation work by Mahyuddin Susanto via Michael Terry

895. By Jeff Lane 

Merged cr3 changes to changelog and control

896. By Marc Tardif

Added changelog entry for candidate revision.

897. By Jeff Lane 

Commited Gerhard Burgers punctuation fix for LP #744167

898. By Marc Tardif

Merged from 553777.

899. By Marc Tardif

Moved Gerhard Burger in changelog from 0.11.2 to 0.11.3.

900. By Marc Tardif

Fixed missing capital letter in sleep_state_test description.

901. By Marc Tardif

Merged from 744964.

902. By Jeff Lane 

Merged Marc Tardif fix for lp:729431

903. By Jeff Lane 

Merged Marc Tardif fixes to hibernate test for lp:630785

904. By Jeff Lane 

Merged addition of rtc test to sleep.txt.in to meet dependencies

905. By Marc Tardif

Reintroduced pm-utils requirements for jobs calling the sleep_test command and update po files.

906. By Marc Tardif

Merged checkbox log to apport report.

907. By Marc Tardif

Added changelog entry for candidate revision.

908. By Marc Tardif

Merged branch to enable camera detect test.

909. By Jeff Lane 

Merged Carl Milettes fix for lp:507943 (disk_bench_test hard coded drive)

910. By Marc Tardif

Fixed eval of resources with names like list item names.

911. By Marc Tardif

Merged from pygi-gtk3-port.

912. By Marc Tardif

Removed dead pixel test.

913. By Marc Tardif

Merged from 773667.

914. By Marc Tardif

Merged from 776734.

915. By Marc Tardif

Merged from 786924.

916. By Marc Tardif

Merged from 776712.

917. By Jeff Lane 

Applied Marc Tardifs changes to allow for remote submission (send results from a system other than the system under test)

918. By Marc Tardif

Merged from 588539.

919. By Marc Tardif

Merged from 665299.

920. By Marc Tardif

Wrapped submission stream to check for illegal xml characters.

Revision history for this message
Daniel Manrique (roadmr) wrote :

apport_prompt.py defines ApportUserInterface as a subclass of UserInterface. As per apport.ui.UserInterface documentation:

A concrete subclass must implement all the abstract ui_* methods.

While not all ui_* methods are actually implemented in ApportUserInterface, it's good to advance towards completion. This code basically does that. I checked that it doesn't interfere otherwise with Checkbox operations, and also that it merges cleanly against latest trunk (as of 2011-06-28). So I'd say this is OK to merge.

Revision history for this message
Daniel Manrique (roadmr) wrote :

Thanks Javier, looks good as per my previous comment, so merged.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/apport_prompt.py'
2--- plugins/apport_prompt.py 2011-03-29 13:47:20 +0000
3+++ plugins/apport_prompt.py 2011-06-08 14:26:12 +0000
4@@ -135,6 +135,11 @@
5
6 return [options.index(r) for r in results]
7
8+ def ui_question_yesno(self, text):
9+ self.interface.show_progress_stop()
10+ result = self.interface.show_radio(text, ["Yes", "No"])
11+ return result == "Yes"
12+
13 def open_url(self, url):
14 self.interface.show_url(url)
15

Subscribers

People subscribed via source and target branches