'Fetch list of extra help sources from a given configSet.
Valid configSets are \'user\' or \'default\'.  Return a list of tuples of
the form (menu_item , path_to_help_file , option), or return the empty
list.  \'option\' is the sequence number of the help resource.  \'option\'
values determine the position of the menu items on the Help menu,
therefore the returned list must be sorted by \'option\'.'

def GetExtraHelpSourceList(self, configSet):

    helpSources = []
    if (configSet == 'user'):
        cfgParser = self.userCfg['main']
    elif (configSet == 'default'):
        cfgParser = self.defaultCfg['main']
    else:
        raise InvalidConfigSet, 'Invalid    configSet    specified'
    options = cfgParser.GetOptionList('HelpFiles')
    for option in options:
        value = cfgParser.Get('HelpFiles', option, default=';')
        if (value.find(';') == (-1)):
            menuItem = ''
            helpPath = ''
        else:
            value = string.split(value, ';')
            menuItem = value[0].strip()
            helpPath = value[1].strip()
        if (menuItem and helpPath):
            helpSources.append((menuItem, helpPath, option))
    helpSources.sort(key=(lambda x: int(x[2])))
    return helpSources
