move replace_all function to base/string.h
[enigma2.git] / lib / python / Components / HelpMenuList.py
index 04815c8d92573df9097e863c3ad821fd5f77e5c6..ddf871a7db4bbc4d21293f738ccf723ceec1e83d 100755 (executable)
@@ -7,7 +7,7 @@ from Tools.KeyBindings import queryKeyBinding, getKeyDescription
 # [ ( actionmap, context, [(action, help), (action, help), ...] ), (actionmap, ... ), ... ]
 
 class HelpMenuList(GUIComponent):
-       def __init__(self, list, callback):
+       def __init__(self, helplist, callback):
                GUIComponent.__init__(self)
                self.onSelChanged = [ ]
                self.l = eListboxPythonMultiContent()
@@ -15,7 +15,7 @@ class HelpMenuList(GUIComponent):
                self.extendedHelp = False
 
                l = [ ]
-               for (actionmap, context, actions) in list:
+               for (actionmap, context, actions) in helplist:
                        for (action, help) in actions:
                                entry = [ ]
 
@@ -38,7 +38,7 @@ class HelpMenuList(GUIComponent):
                                        
                                entry.append( (actionmap, context, action, name ) )
                                        
-                               if type(help).__name__== 'list':
+                               if isinstance(help, list):
                                        self.extendedHelp = True
                                        print "extendedHelpEntry found"
                                        entry.append( (eListboxPythonMultiContent.TYPE_TEXT, 0, 0, 400, 26, 0, 0, help[0]) )