fix-fix configlist assertion (add #188)
authorFraxinas <andreas.frisch@multimedia-labs.de>
Mon, 14 Jun 2010 10:59:12 +0000 (12:59 +0200)
committerFraxinas <andreas.frisch@multimedia-labs.de>
Mon, 14 Jun 2010 11:02:30 +0000 (13:02 +0200)
lib/python/Components/ConfigList.py

index 5a02c38..24f917f 100755 (executable)
@@ -88,7 +88,7 @@ class ConfigList(HTMLComponent, GUIComponent, object):
 
                if l is not None:
                        for x in l:
-                               assert isinstance(x, ConfigElement), "entry in ConfigList " + str(x) + " must be a ConfigElement"
+                               assert len(x) < 2 or isinstance(x[1], ConfigElement), "entry in ConfigList " + str(x[1]) + " must be a ConfigElement"
 
        def getList(self):
                return self.__list