From c531c2cb2ecd10aebd30e2b4994efc8ac277a7ac Mon Sep 17 00:00:00 2001 From: Martin Sivak Date: Wed, 23 Jun 2010 16:40:53 +0200 Subject: Refactor the gtk question code and add preliminary support for failed (exception) issues --- plugins/plugin_examples/dialogue.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'plugins/plugin_examples/dialogue.py') 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 -- cgit