from Components.ConfigList import ConfigListScreen
from Components.Label import Label
from Components.Pixmap import Pixmap
import xml.dom.minidom
from Components.ConfigList import ConfigListScreen
from Components.Label import Label
from Components.Pixmap import Pixmap
import xml.dom.minidom
def __init__(self, session, setup):
Screen.__init__(self, session)
def __init__(self, session, setup):
Screen.__init__(self, session)
item_text = _(x.getAttribute("text").encode("UTF-8") or "??")
b = eval(XMLTools.mergeText(x.childNodes));
if b == "":
item_text = _(x.getAttribute("text").encode("UTF-8") or "??")
b = eval(XMLTools.mergeText(x.childNodes));
if b == "":
item = b
# the first b is the item itself, ignored by the configList.
# the second one is converted to string.
item = b
# the first b is the item itself, ignored by the configList.
# the second one is converted to string.
- list.append( (item_text, item) )
+ if not isinstance(item, ConfigNothing):
+ list.append( (item_text, item) )
if x.getAttribute("key") == id:
return x.getAttribute("title").encode("UTF-8")
raise "unknown setup id '%s'!" % repr(id)
if x.getAttribute("key") == id:
return x.getAttribute("title").encode("UTF-8")
raise "unknown setup id '%s'!" % repr(id)