'This method is called when installing or re-installing a single repository into a Galaxy instance.
If the received changeset_revision includes one or more readme files, return them in a dictionary.'

@web.json
def get_readme_files(self, trans, **kwd):

    repository_name = kwd.get('name', None)
    repository_owner = kwd.get('owner', None)
    changeset_revision = kwd.get('changeset_revision', None)
    if ((repository_name is not None) and (repository_owner is not None) and (changeset_revision is not None)):
        repository = repository_util.get_repository_by_name_and_owner(trans.app, repository_name, repository_owner)
        if repository:
            repository_metadata = metadata_util.get_repository_metadata_by_changeset_revision(trans.app, trans.security.encode_id(repository.id), changeset_revision)
            if repository_metadata:
                metadata = repository_metadata.metadata
                if metadata:
                    return readme_util.build_readme_files_dict(trans.app, repository, changeset_revision, repository_metadata.metadata)
    return {}
