From 8916a028519e706f6b7764839e1adc1d25eddac1 Mon Sep 17 00:00:00 2001 From: Fraxinas Date: Mon, 14 Jun 2010 12:59:12 +0200 Subject: [PATCH] fix-fix configlist assertion (add #188) --- lib/python/Components/ConfigList.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/python/Components/ConfigList.py b/lib/python/Components/ConfigList.py index 5a02c38..24f917f 100755 --- a/lib/python/Components/ConfigList.py +++ b/lib/python/Components/ConfigList.py @@ -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 -- 2.7.4