Merge lp://staging/~brendan-donegan/checkbox/gui_submission_screen into lp://staging/checkbox
Proposed by
Brendan Donegan
Status: | Merged |
---|---|
Approved by: | Sylvain Pineau |
Approved revision: | 2804 |
Merged at revision: | 2807 |
Proposed branch: | lp://staging/~brendan-donegan/checkbox/gui_submission_screen |
Merge into: | lp://staging/checkbox |
Diff against target: |
283 lines (+196/-7) 5 files modified
checkbox-gui/checkbox-gui/qml/SubmissionDialog.qml (+76/-7) checkbox-gui/gui-engine/gui-engine.cpp (+73/-0) checkbox-gui/gui-engine/gui-engine.h (+11/-0) checkbox-ng/checkbox_ng/service.py (+14/-0) plainbox/plainbox/impl/highlevel.py (+22/-0) |
To merge this branch: | bzr merge lp://staging/~brendan-donegan/checkbox/gui_submission_screen |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sylvain Pineau (community) | Approve | ||
Review via email: mp+211779@code.staging.launchpad.net |
Description of the change
Adapt the SubmissionDialog to use a settings file to customise itself. An example of such a config is:
[submission]
input_type = "regex"
input_placeholder = "Secure ID (15 or 18 characters)"
ok_btn_text = "Submit Results"
submit_to_hexr = "true"
[exporter]
export_path = "/tmp/submissio
[transport]
submit_to = "certification"
The current default behaviour is to allow the user to save the XML locally (or view the report, as will always be supported in any version of the SubmissionDialog)
To support the submit_to = "certification" option, I have also added code to perform the sending of a submission over the certification transport.
To post a comment you must log in.
[exporter] n.xml"
export_path = "/tmp/submissio
[transport]
submit_to = "certification"
I'd prefer to distinguish exporters properties like this:
[exporter] n.xml" n.xlsx"
xml = enabled
html = enabled
xml_export_path = "/tmp/submissio
xlsx = enabled
xlsx_export_path = "/tmp/submissio
xlsx_export_options = "with_foo with_bar"
Same thing for transports:
[transport] secure_ id = axxx00000000
certification = enabled
certification_
launchpad = disabled
hexr = disabled