adding function getConfigListEntry for dynamic menus
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 10 Oct 2005 19:25:47 +0000 (19:25 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 10 Oct 2005 19:25:47 +0000 (19:25 +0000)
lib/python/Components/config.py

index 7f8f507..5d098a3 100644 (file)
@@ -334,3 +334,8 @@ class configElement:
                self.loadData()
        def save(self):
                configfile.setKey(self.configPath, self.datatoFile(self.controlType,self.value))
+
+def getConfigListEntry(description, element):
+       b = element
+       item = b.controlType(b)
+       return ((description, item))
\ No newline at end of file