ignore name also for additional objects
[enigma2.git] / skin.py
diff --git a/skin.py b/skin.py
index 30e8c720188b673fc35895ae09dcc63f1337e414..f34ea9c22c63b0f978b04c548021c483b398ccf4 100644 (file)
--- a/skin.py
+++ b/skin.py
@@ -177,7 +177,7 @@ def applySingleAttribute(guiObject, desktop, attrib, value):
                elif attrib == 'shadowOffset':
                        guiObject.setShadowOffset(parsePosition(value))
                else:
-                       print "unsupported attribute " + attrib + "=" + value
+                       raise "unsupported attribute " + attrib + "=" + value
        except int:
 # AttributeError:
                print "widget %s (%s) doesn't support attribute %s!" % ("", guiObject.__class__.__name__, attrib)
@@ -367,7 +367,7 @@ def readSkin(screen, skin, name, desktop):
                        raise SkinError("unsupported stuff : %s" % widget.tagName)
                
                w.skinAttributes = [ ]
-               collectAttributes(w.skinAttributes, widget, skin_path_prefix)
+               collectAttributes(w.skinAttributes, widget, skin_path_prefix, ignore=['name'])
                
                # applyAttributes(guiObject, widget, desktop)
                # guiObject.thisown = 0