summaryrefslogtreecommitdiffstats
path: root/plugins/plugin_examples/dialogue.py
diff options
context:
space:
mode:
authorMartin Sivak <msivak@redhat.com>2010-06-23 16:40:53 +0200
committerMartin Sivak <msivak@redhat.com>2010-06-23 16:40:53 +0200
commitc531c2cb2ecd10aebd30e2b4994efc8ac277a7ac (patch)
tree3bdfbc862bd3ddb1d874e51c59df0a0474ce79bf /plugins/plugin_examples/dialogue.py
parent9c0924b4e947899956c9eafa0817d00e9f970503 (diff)
downloadfirstaidkit-c531c2cb2ecd10aebd30e2b4994efc8ac277a7ac.tar.gz
firstaidkit-c531c2cb2ecd10aebd30e2b4994efc8ac277a7ac.tar.xz
firstaidkit-c531c2cb2ecd10aebd30e2b4994efc8ac277a7ac.zip
Refactor the gtk question code and add preliminary support for failed (exception) issues
Diffstat (limited to 'plugins/plugin_examples/dialogue.py')
-rw-r--r--plugins/plugin_examples/dialogue.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/plugin_examples/dialogue.py b/plugins/plugin_examples/dialogue.py
index 560a6e9..1ff007a 100644
--- a/plugins/plugin_examples/dialogue.py
+++ b/plugins/plugin_examples/dialogue.py
@@ -29,10 +29,6 @@ class DialoguePlugin(Plugin):
version = "0.0.1"
author = "Miloslav Trmač"
- @classmethod
- def getDeps(cls):
- return set(["experimental", "broken"])
-
def __init__(self, *args, **kwargs):
Plugin.__init__(self, *args, **kwargs)
self._issue = SimpleIssue(self.name, self.description)
@@ -50,9 +46,6 @@ class DialoguePlugin(Plugin):
def diagnose(self):
self._result=ReturnSuccess
- self._issue.set(checked = True, happened = False,
- reporting = self._reporting, origin = self,
- level = PLUGIN)
self._reporting.info("DialoguePlugin in diagnose task", origin = self,
level = PLUGIN)
tea = self._reporting.choice_question_wait \
@@ -83,6 +76,10 @@ class DialoguePlugin(Plugin):
level = PLUGIN)
self._reporting.info("File name: %s" % repr(s), origin = self,
level = PLUGIN)
+ self._issue.set(checked = True, happened = False,
+ reporting = self._reporting, origin = self,
+ level = PLUGIN)
+
def fix(self):
self._result=ReturnSuccess