aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-02-19 13:23:10 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-02-19 13:23:10 +0000
commit727978090dcb7c35ec9937c9f69d2ae58cabf244 (patch)
tree3d7b5f9913798b220f96589f3e5bf443f09672eb /lib/python
parent0d78141dd63b36ea0b5f6d8d0ac61c814b933e5f (diff)
downloadenigma2-727978090dcb7c35ec9937c9f69d2ae58cabf244.tar.gz
enigma2-727978090dcb7c35ec9937c9f69d2ae58cabf244.zip
add some debugging to the Wizard
catch a stepHistory situation
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/Wizard.py8
1 files changed, 7 insertions, 1 deletions
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: