From: Stefan Pluecken Date: Tue, 19 Feb 2008 13:23:10 +0000 (+0000) Subject: add some debugging to the Wizard X-Git-Tag: 2.6.0~1515 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/727978090dcb7c35ec9937c9f69d2ae58cabf244?hp=0d78141dd63b36ea0b5f6d8d0ac61c814b933e5f;ds=inline add some debugging to the Wizard catch a stepHistory situation --- diff --git a/lib/python/Screens/Wizard.py b/lib/python/Screens/Wizard.py index c987ac61..f018c3ce 100644 --- a/lib/python/Screens/Wizard.py +++ b/lib/python/Screens/Wizard.py @@ -211,12 +211,17 @@ class Wizard(Screen, HelpableScreen): self.lcdCallbacks.append(callback) def back(self): + print "getting back..." + print "stepHistory:", self.stepHistory if len(self.stepHistory) > 1: self.currStep = self.stepHistory[-2] self.stepHistory = self.stepHistory[:-2] if self.currStep < 1: self.currStep = 1 + print "currStep:", self.currStep + print "new stepHistory:", self.stepHistory self.updateValues() + print "after updateValues stepHistory:", self.stepHistory def markDone(self): pass @@ -366,7 +371,8 @@ class Wizard(Screen, HelpableScreen): self.condition = True exec (self.wizard[self.currStep]["condition"]) if self.condition: - self.stepHistory.append(self.currStep) + if len(self.stepHistory) == 0 or self.stepHistory[-1] != self.currStep: + self.stepHistory.append(self.currStep) print "wizard step:", self.wizard[self.currStep] if self.showSteps: