show transponders in diseqc tester results
authorStefan <stefan@tuxboxls.(none)>
Tue, 16 Dec 2008 18:34:25 +0000 (19:34 +0100)
committerStefan <stefan@tuxboxls.(none)>
Tue, 16 Dec 2008 18:55:35 +0000 (19:55 +0100)
lib/python/Plugins/SystemPlugins/DiseqcTester/plugin.py

index f997acd..5779b3b 100644 (file)
@@ -58,6 +58,27 @@ class ResultParser:
                        
                        for reason in reasons.keys():
                                text += "%s: %d transponders failed\n" % (reason, len(reasons[reason]))
+                       
+                       for reason in reasons.keys():
+                               text += "\n"
+                               text += "%s previous planes:\n" % reason
+                               for transponder in reasons[reason]:
+                                       if transponder[1] is not None:
+                                               text += self.getTextualIndexRepresentation(self.getIndexForTransponder(transponder[1]))
+                                       else:
+                                               text += "No transponder tuned"
+                                       text += " ==> " + self.getTextualIndexRepresentation(self.getIndexForTransponder(transponder[0]))
+                                       text += "\n"
+               if countsuccessful > 0:
+                       text += "\n"
+                       text += "Successfully tuned transponders' previous planes:\n" 
+                       for transponder in successful:
+                               if transponder[1] is not None:
+                                       text += self.getTextualIndexRepresentation(self.getIndexForTransponder(transponder[1]))
+                               else:
+                                       text += "No transponder tuned"
+                               text += " ==> " + self.getTextualIndexRepresentation(self.getIndexForTransponder(transponder[0]))
+                               text += "\n"
                return text
 
        def getTextualResult(self):