from Components.config import ConfigSubsection, ConfigText, config
from Components.Converter.Converter import Converter
from Components.Sources.Source import Source, ObsoleteSource
from Components.config import ConfigSubsection, ConfigText, config
from Components.Converter.Converter import Converter
from Components.Sources.Source import Source, ObsoleteSource
-from Tools.Directories import resolveFilename, SCOPE_SKIN, SCOPE_SKIN_IMAGE, SCOPE_FONTS, SCOPE_CURRENT_SKIN, fileExists
+from Tools.Directories import resolveFilename, SCOPE_SKIN, SCOPE_SKIN_IMAGE, SCOPE_FONTS, SCOPE_CURRENT_SKIN, SCOPE_CONFIG, fileExists
mpath = path.dirname(filename) + "/"
dom_skins.append((mpath, xml.etree.cElementTree.parse(filename).getroot()))
mpath = path.dirname(filename) + "/"
dom_skins.append((mpath, xml.etree.cElementTree.parse(filename).getroot()))
+try:
+ loadSkin('skin_user.xml', SCOPE_CONFIG)
+except (SkinError, IOError, AssertionError), err:
+ print "not loading user skin: ", err
+
try:
loadSkin(config.skin.primary_skin.value)
except (SkinError, IOError, AssertionError), err:
try:
loadSkin(config.skin.primary_skin.value)
except (SkinError, IOError, AssertionError), err:
try:
guiObject.setOrientation(*
{ "orVertical": (guiObject.orVertical, False),
try:
guiObject.setOrientation(*
{ "orVertical": (guiObject.orVertical, False),
"orBottomToTop": (guiObject.orVertical, True),
"orHorizontal": (guiObject.orHorizontal, False),
"orLeftToRight": (guiObject.orHorizontal, False),
"orBottomToTop": (guiObject.orVertical, True),
"orHorizontal": (guiObject.orHorizontal, False),
"orLeftToRight": (guiObject.orHorizontal, False),
colorNames[name] = parseColor(color)
#print "Color:", name, color
else:
colorNames[name] = parseColor(color)
#print "Color:", name, color
else:
ctype = converter.get('type')
assert ctype, "'convert'-tag needs a 'type'-attribute"
#print "Converter:", ctype
ctype = converter.get('type')
assert ctype, "'convert'-tag needs a 'type'-attribute"
#print "Converter:", ctype
- #print "Params:", ctype
- converter_class = my_import('.'.join(["Components", "Converter", ctype])).__dict__.get(ctype)
+ #print "Params:", parms
+ converter_class = my_import('.'.join(("Components", "Converter", ctype))).__dict__.get(ctype)