'Inspect each tool to see if any have input parameters that are dynamically
generated select lists that require entries in the tool_data_table_conf.xml
file.  This method is called only from Galaxy (not the tool shed) when a
repository is being installed or reinstalled.'

def handle_missing_data_table_entry(self, relative_install_dir, tool_path, repository_tools_tups):

    missing_data_table_entry = False
    for (index, repository_tools_tup) in enumerate(repository_tools_tups):
        (tup_path, guid, repository_tool) = repository_tools_tup
        if repository_tool.params_with_missing_data_table_entry:
            missing_data_table_entry = True
            break
    if missing_data_table_entry:
        sample_tool_data_table_conf = hg_util.get_config_from_disk('tool_data_table_conf.xml.sample', relative_install_dir)
        if sample_tool_data_table_conf:
            (error, message) = self.handle_sample_tool_data_table_conf_file(sample_tool_data_table_conf, persist=True)
            if error:
                log.debug(message)
        repository_tool = self.app.toolbox.load_tool(os.path.join(tool_path, tup_path), guid=guid, use_cached=False)
        repository_tools_tups[index] = (tup_path, guid, repository_tool)
        self.reset_tool_data_tables()
    return repository_tools_tups
