X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FScreens%2FWizard.py;fp=lib%2Fpython%2FScreens%2FWizard.py;h=2326b9156ca5fc4c862b941c16e49a830ab5e375;hp=feba8ac224672bad58893be5560c0d070671c8cc;hb=76e5181cade262b86610dcc851bcb4452196ccdc;hpb=00248c1a8794e64b8ce82d9cdefdd3ddae98dffd diff --git a/lib/python/Screens/Wizard.py b/lib/python/Screens/Wizard.py index feba8ac..2326b91 100755 --- a/lib/python/Screens/Wizard.py +++ b/lib/python/Screens/Wizard.py @@ -1,7 +1,5 @@ from Screen import Screen -import string - from Screens.HelpMenu import HelpableScreen from Components.config import config, KEY_LEFT, KEY_RIGHT, KEY_HOME, KEY_END, KEY_0, KEY_DELETE, KEY_BACKSPACE, KEY_OK, KEY_TOGGLEOW, KEY_ASCII, KEY_TIMEOUT, KEY_NUMBERS @@ -87,9 +85,9 @@ class Wizard(Screen): timeoutstep = '' self.wizard[self.lastStep] = {"id": id, "condition": "", "text": "", "timeout": timeout, "timeoutaction": timeoutaction, "timeoutstep": timeoutstep, "list": [], "config": {"screen": None, "args": None, "type": "" }, "code": "", "codeafter": "", "code_async": "", "codeafter_async": "", "nextstep": nextstep} elif (name == "text"): - self.wizard[self.lastStep]["text"] = string.replace(str(attrs.get('value')), "\\n", "\n") + self.wizard[self.lastStep]["text"] = str(attrs.get('value')).replace("\\n", "\n") elif (name == "displaytext"): - self.wizard[self.lastStep]["displaytext"] = string.replace(str(attrs.get('value')), "\\n", "\n") + self.wizard[self.lastStep]["displaytext"] = str(attrs.get('value')).replace("\\n", "\n") elif (name == "list"): if (attrs.has_key('type')): if attrs["type"] == "dynamic":