def get_readme_files_dict_for_display(app, tool_shed_url, repo_info_dict):
 name = next(iter(repo_info_dict))
 repo_info_tuple = repo_info_dict[name]
 (description, repository_clone_url, changeset_revision, ctx_rev, repository_owner, repository_dependencies, installed_td) = repository_util.get_repo_info_tuple_contents(repo_info_tuple)
 tool_shed_url = common_util.get_tool_shed_url_from_tool_shed_registry(app, tool_shed_url)
 params = dict(name=name, owner=repository_owner, changeset_revision=changeset_revision)
 pathspec = ['repository', 'get_readme_files']
 raw_text = url_get(tool_shed_url, password_mgr=app.tool_shed_registry.url_auth(tool_shed_url), pathspec=pathspec, params=params)
 readme_files_dict = json.loads(raw_text)
 return readme_files_dict

def get_readme_files_dict_for_display ( app , tool_shed_url , repo_info_dict ) : name = next ( iter ( repo_info_dict ) ) repo_info_tuple = repo_info_dict [ name ] ( description , repository_clone_url , changeset_revision , ctx_rev , repository_owner , repository_dependencies , installed_td ) = repository_util . get_repo_info_tuple_contents ( repo_info_tuple ) tool_shed_url = common_util . get_tool_shed_url_from_tool_shed_registry ( app , tool_shed_url ) params = dict ( name = name , owner = repository_owner , changeset_revision = changeset_revision ) pathspec = [ 'repository' , 'get_readme_files' ] raw_text = url_get ( tool_shed_url , password_mgr = app . tool_shed_registry . url_auth ( tool_shed_url ) , pathspec = pathspec , params = params ) readme_files_dict = json . loads ( raw_text ) return readme_files_dict
return a dictionary of readme files contained in the single repository being installed so they can be displayed on the tool panel section selection page .