diff options
author | Joel Andres Granados <jgranado@redhat.com> | 2008-02-25 15:11:47 +0100 |
---|---|---|
committer | Joel Andres Granados <jgranado@redhat.com> | 2008-02-26 14:43:55 +0100 |
commit | cfe9ad54127a42b79f9057d341ec94099630b884 (patch) | |
tree | 6901da68ca2008d47a4e8c13e713c1f5d2a0497a /plugins/plugin_examples/sample3Plugin/sample3Plugin.py | |
parent | d811af9085d1c7a1262141d232666354bb2379b1 (diff) | |
download | firstaidkit-cfe9ad54127a42b79f9057d341ec94099630b884.tar.gz firstaidkit-cfe9ad54127a42b79f9057d341ec94099630b884.tar.xz firstaidkit-cfe9ad54127a42b79f9057d341ec94099630b884.zip |
Appeninding Return to the class names help to identify them in the plugin code.
Diffstat (limited to 'plugins/plugin_examples/sample3Plugin/sample3Plugin.py')
-rw-r--r-- | plugins/plugin_examples/sample3Plugin/sample3Plugin.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/plugin_examples/sample3Plugin/sample3Plugin.py b/plugins/plugin_examples/sample3Plugin/sample3Plugin.py index b4a8138..5d2e362 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=Unfavorable + self._result=ReturnUnfavorable elif out[-4:] == "true": - self._result=Favorable + self._result=ReturnFavorable 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=Unfavorable + self._result=ReturnUnfavorable elif out[-4:] == "true": - self._result=Favorable + self._result=ReturnFavorable 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=Unfavorable + self._result=ReturnUnfavorable elif out[-4:] == "true": - self._result=Favorable + self._result=ReturnFavorable 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=Unfavorable + self._result=ReturnUnfavorable elif out[-4:] == "true": - self._result=Favorable + self._result=ReturnFavorable 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=Unfavorable + self._result=ReturnUnfavorable elif out[-4:] == "true": - self._result=Favorable + self._result=ReturnFavorable 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=Unfavorable + self._result=ReturnUnfavorable elif out[-4:] == "true": - self._result=Favorable + self._result=ReturnFavorable |