From d811af9085d1c7a1262141d232666354bb2379b1 Mon Sep 17 00:00:00 2001 From: Joel Andres Granados Date: Mon, 25 Feb 2008 15:05:32 +0100 Subject: Use a more intuitive return class names for the default flows. True and false are not very generic for the flows. Favorable and Unfavorable are not completely generic but are better. --- .../plugin_examples/sample3Plugin/sample3Plugin.py | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'plugins/plugin_examples/sample3Plugin/sample3Plugin.py') diff --git a/plugins/plugin_examples/sample3Plugin/sample3Plugin.py b/plugins/plugin_examples/sample3Plugin/sample3Plugin.py index 6ec95ec..b4a8138 100644 --- a/plugins/plugin_examples/sample3Plugin/sample3Plugin.py +++ b/plugins/plugin_examples/sample3Plugin/sample3Plugin.py @@ -36,9 +36,9 @@ class Sample3Plugin(Plugin): (out, err) = proc.communicate() out = out.strip() if out[-5:] == "false": - self._result=ReturnValueFalse + self._result=Unfavorable elif out[-4:] == "true": - self._result=ReturnValueTrue + self._result=Favorable def clean(self): clean = [Config.plugin.path+"/sample3Plugin/plugin", "--task", "clean"] @@ -46,9 +46,9 @@ class Sample3Plugin(Plugin): (out, err) = proc.communicate() out = out.strip() if out[-5:] == "false": - self._result=ReturnValueFalse + self._result=Unfavorable elif out[-4:] == "true": - self._result=ReturnValueTrue + self._result=Favorable def backup(self): backup = [Config.plugin.path+"/sample3Plugin/plugin", "--task", "backup"] @@ -56,9 +56,9 @@ class Sample3Plugin(Plugin): (out, err) = proc.communicate() out = out.strip() if out[-5:] == "false": - self._result=ReturnValueFalse + self._result=Unfavorable elif out[-4:] == "true": - self._result=ReturnValueTrue + self._result=Favorable def restore(self): restore = [Config.plugin.path+"/sample3Plugin/plugin", "--task", "restore"] @@ -66,9 +66,9 @@ class Sample3Plugin(Plugin): (out, err) = proc.communicate() out = out.strip() if out[-5:] == "false": - self._result=ReturnValueFalse + self._result=Unfavorable elif out[-4:] == "true": - self._result=ReturnValueTrue + self._result=Favorable def diagnose(self): diagnose = [Config.plugin.path+"/sample3Plugin/plugin", "--task", "diagnose"] @@ -76,9 +76,9 @@ class Sample3Plugin(Plugin): (out, err) = proc.communicate() out = out.strip() if out[-5:] == "false": - self._result=ReturnValueFalse + self._result=Unfavorable elif out[-4:] == "true": - self._result=ReturnValueTrue + self._result=Favorable def fix(self): fix = [Config.plugin.path+"/sample3Plugin/plugin", "--task", "fix"] @@ -86,6 +86,6 @@ class Sample3Plugin(Plugin): (out, err) = proc.communicate() out = out.strip() if out[-5:] == "false": - self._result=ReturnValueFalse + self._result=Unfavorable elif out[-4:] == "true": - self._result=ReturnValueTrue + self._result=Favorable -- cgit