diff options
author | Martin Sivak <msivak@redhat.com> | 2010-08-27 15:15:15 +0200 |
---|---|---|
committer | Martin Sivak <msivak@redhat.com> | 2010-08-30 14:37:55 +0200 |
commit | 4ac2ac721a139325a35f48a631e2ff8b994eb2f6 (patch) | |
tree | b6db8f7d849abaadaad27b3d3eabf9191754383b /plugins | |
parent | f5f4a7896222cea3dd942cdc0d79af75dbc74bca (diff) | |
download | firstaidkit-4ac2ac721a139325a35f48a631e2ff8b994eb2f6.tar.gz firstaidkit-4ac2ac721a139325a35f48a631e2ff8b994eb2f6.tar.xz firstaidkit-4ac2ac721a139325a35f48a631e2ff8b994eb2f6.zip |
Add Combo mode to ConfigDialog
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/openscap_plugin.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/plugins/openscap_plugin.py b/plugins/openscap_plugin.py index 82efa30..34f9ea5 100644 --- a/plugins/openscap_plugin.py +++ b/plugins/openscap_plugin.py @@ -86,16 +86,19 @@ class OpenSCAPPlugin(Plugin): tailor_items = self._policy.get_tailor_items() preproces_tailor_items = lambda i: (i["id"], - i["titles"][i["lang"]] or "", - i["selected"][1] or "", - i["descs"][i["lang"]] or "", - i["match"] or ".*", - "Error setting the value, read the following description and try again:\n\n"+i["descs"][i["lang"]]) + i["titles"][i["lang"]] or "", + i["selected"][1] or "", + i["descs"][i["lang"]] or "", + i["match"] or ".*", + "Error setting the value, read the following description and try again:\n\n"+i["descs"][i["lang"]], + [i["selected"][1] or "", "test"] + ) tailor_items = map(preproces_tailor_items, tailor_items) s = self._reporting.config_question_wait("Setup OpenScap policy", "Set preferred values and press OK", - tailor_items, origin = self, + tailor_items, mode = 2, + origin = self, level = PLUGIN) preprocess_s = lambda v: {"id": v[0], "value": v[1]} |