getConfigListEntry now supports more than two arguments
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 23 Oct 2006 14:54:46 +0000 (14:54 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 23 Oct 2006 14:54:46 +0000 (14:54 +0000)
lib/python/Components/config.py

index 44acacddf4472c7c13e081be0e3fc28ead5c389b..6c683bca4d48ad7858f1672f1d29d09d1a297102 100644 (file)
@@ -886,8 +886,9 @@ configfile = ConfigFile()
 
 configfile.load()
 
 
 configfile.load()
 
-def getConfigListEntry(desc, config):
-       return (desc, config)
+def getConfigListEntry(*args):
+       assert len(args) > 1, "getConfigListEntry needs a minimum of two arguments (descr, configElement)"
+       return args
 
 #def _(x):
 #      return x
 
 #def _(x):
 #      return x