diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-02-25 21:29:34 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-02-25 21:29:34 +0000 |
| commit | bc8ba2d89e7c71e95c1ee8e8e2da26a993e01997 (patch) | |
| tree | 5faf13746f006278f4aff1034c96e1941a91cfaf /lib/python/Screens/Wizard.py | |
| parent | ffd007cb4f71a3c9f7d69339126cbe69f6b4ee63 (diff) | |
| download | enigma2-bc8ba2d89e7c71e95c1ee8e8e2da26a993e01997.tar.gz enigma2-bc8ba2d89e7c71e95c1ee8e8e2da26a993e01997.zip | |
- new automatic scan - scans everything the NIM can handle
- ServiceScan is now able to do a multipass scan
- added the manual scan to the startwizard
- wizards have a new "nextstep" attribute for the <step>-tag now
Diffstat (limited to 'lib/python/Screens/Wizard.py')
| -rw-r--r-- | lib/python/Screens/Wizard.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/python/Screens/Wizard.py b/lib/python/Screens/Wizard.py index 43931576..c91639c4 100644 --- a/lib/python/Screens/Wizard.py +++ b/lib/python/Screens/Wizard.py @@ -31,7 +31,11 @@ class Wizard(Screen, HelpableScreen): id = str(attrs.get('id')) else: id = "" - self.wizard[self.lastStep] = {"id": id, "condition": "", "text": "", "list": [], "config": {"screen": None, "args": None, "type": "" }, "code": "", "codeafter": ""} + if attrs.has_key('nextstep'): + nextstep = str(attrs.get('nextstep')) + else: + nextstep = None + self.wizard[self.lastStep] = {"id": id, "condition": "", "text": "", "list": [], "config": {"screen": None, "args": None, "type": "" }, "code": "", "codeafter": "", "nextstep": nextstep} elif (name == "text"): self.wizard[self.lastStep]["text"] = string.replace(str(attrs.get('value')), "\\n", "\n") elif (name == "listentry"): @@ -160,6 +164,8 @@ class Wizard(Screen, HelpableScreen): self.session.close() else: self.runCode(self.wizard[self.currStep]["codeafter"]) + if self.wizard[self.currStep]["nextstep"] is not None: + self.currStep = self.getStepWithID(self.wizard[self.currStep]["nextstep"]) self.currStep += 1 self.updateValues() |
