aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-01-06 22:32:57 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-01-06 22:32:57 +0000
commitf7770f3d4b2cd6bc951573d700cb5011a0068759 (patch)
tree5b0eb48cac55fef4d67d4359bf58786bcb6368ce /lib/python
parent834926ea17f0489f857e6cfbd886171740928d6f (diff)
downloadenigma2-f7770f3d4b2cd6bc951573d700cb5011a0068759.tar.gz
enigma2-f7770f3d4b2cd6bc951573d700cb5011a0068759.zip
fix screens without a module
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/Menu.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/python/Screens/Menu.py b/lib/python/Screens/Menu.py
index 4ad36d18..a12571e7 100644
--- a/lib/python/Screens/Menu.py
+++ b/lib/python/Screens/Menu.py
@@ -91,7 +91,8 @@ class Menu(Screen):
# plus possible arguments, as
# string (as we want to reference
# stuff which is just imported)
- # FIXME. somehow.
+ # FIXME. somehow
+ print arg
if arg[0] != "":
exec "from " + arg[0] + " import *"
@@ -120,11 +121,14 @@ class Menu(Screen):
if x.nodeType != xml.dom.minidom.Element.nodeType:
continue
elif x.tagName == 'screen':
- module = "Screens." + getValbyAttr(x, "module")
+ module = getValbyAttr(x, "module")
screen = getValbyAttr(x, "screen")
if len(screen) == 0:
screen = module
+
+ if module != "":
+ module = "Screens." + module
# check for arguments. they will be appended to the
# openDialog call