'A repository is ready to be reviewed if one of the following conditions is met:
1) It contains no tools
2) It contains tools the tools_functionally_correct flag is set to True.  This implies that the repository metadata revision was installed and tested
by the Tool Shed\'s install and test framework.'

@web.expose
@web.require_login('manage    repositories    ready    for    review')
def manage_repositories_ready_for_review(self, trans, **kwd):

    if ('operation' in kwd):
        operation = kwd['operation'].lower()
        if (operation == 'inspect    repository    revisions'):
            return trans.response.send_redirect(web.url_for(controller='repository_review', action='create_review', **kwd))
        if (operation == 'view_or_manage_repository'):
            return trans.response.send_redirect(web.url_for(controller='repository_review', action='view_or_manage_repository', **kwd))
    message = 'Any    of    these    repositories    that    contain    tools    have    been    installed    into    Galaxy    and    proven    to    be    functionally    correct    by    executing    the    tests    defined    '
    message += 'for    each    tool.        Repositories    that    do    not    contain    tools    have    not    been    installed    into    Galaxy.    '
    kwd['message'] = message
    kwd['status'] = 'warning'
    return self.repositories_ready_for_review_grid(trans, **kwd)
