diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2009-01-27 15:57:27 +0100 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2009-01-27 15:57:27 +0100 |
| commit | 09f66522e9f51ac8fc7921bd77ba36a9d9d3d4b3 (patch) | |
| tree | 2e29b0fe36b64ab79be719c03c8e25ba82398f7d /lib/python/Screens | |
| parent | fc102394e60824f5c07da710d36ba28eaf160c72 (diff) | |
| parent | e5423277b5d9dd89918a9b123c10d31057b3dc52 (diff) | |
| download | enigma2-09f66522e9f51ac8fc7921bd77ba36a9d9d3d4b3.tar.gz enigma2-09f66522e9f51ac8fc7921bd77ba36a9d9d3d4b3.zip | |
Merge branch 'master' of git.opendreambox.org:/git/enigma2
Diffstat (limited to 'lib/python/Screens')
| -rw-r--r-- | lib/python/Screens/ChannelSelection.py | 2 | ||||
| -rw-r--r-- | lib/python/Screens/InfoBarGenerics.py | 4 | ||||
| -rw-r--r-- | lib/python/Screens/Setup.py | 9 |
3 files changed, 11 insertions, 4 deletions
diff --git a/lib/python/Screens/ChannelSelection.py b/lib/python/Screens/ChannelSelection.py index b203b24e..ebfbe812 100644 --- a/lib/python/Screens/ChannelSelection.py +++ b/lib/python/Screens/ChannelSelection.py @@ -76,7 +76,7 @@ def append_when_current_valid(current, menu, args, level = 0): class ChannelContextMenu(Screen): def __init__(self, session, csel): Screen.__init__(self, session) - #raise "we need a better summary screen here" + #raise Exception("we need a better summary screen here") self.csel = csel self.bsel = None diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index 986e2a41..197594fd 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -1465,9 +1465,9 @@ class InfoBarInstantRecord: if recording.setAutoincreaseEnd(): self.session.nav.RecordTimer.record(recording) self.recording.append(recording) - self.session.open(MessageBox, _("Record time limited due to conflicting timer %s" % name_date), MessageBox.TYPE_INFO) + self.session.open(MessageBox, _("Record time limited due to conflicting timer %s") % name_date, MessageBox.TYPE_INFO) else: - self.session.open(MessageBox, _("Couldn't record due to conflicting timer %s" % name), MessageBox.TYPE_INFO) + self.session.open(MessageBox, _("Couldn't record due to conflicting timer %s") % name, MessageBox.TYPE_INFO) recording.autoincrease = False else: self.recording.append(recording) diff --git a/lib/python/Screens/Setup.py b/lib/python/Screens/Setup.py index 35918b5b..1d035b8a 100644 --- a/lib/python/Screens/Setup.py +++ b/lib/python/Screens/Setup.py @@ -19,6 +19,13 @@ except: setupdom = xml.etree.cElementTree.parse(setupfile) setupfile.close() +class SetupError(Exception): + def __init__(self, message): + self.message = message + + def __str__(self): + return self.message + class SetupSummary(Screen): skin = """ <screen position="6,0" size="120,64"> @@ -145,4 +152,4 @@ def getSetupTitle(id): for x in xmldata.findall("setup"): if x.get("key") == id: return x.get("title", "").encode("UTF-8") - raise "unknown setup id '%s'!" % repr(id) + raise SetupError("unknown setup id '%s'!" % repr(id)) |
