예제 #1
0
def build():
    return {
        'user':
        user_service.get_display_name(),
        'projects':
        user_service.get_projects(),
        'tools':
        tool_service.get_all_tools(),
        'connections':
        connection_service.get_connections(
            user_service.get_current_username()),
    }
예제 #2
0
def project_home(project_url_name):
    project_name = urllib.parse.unquote_plus(project_url_name)
    return {
        'user':
        user_service.get_current_user(),
        'project_details':
        project_service.get_project_details(project_name),
        'subprojects':
        project_service.get_subprojects(project_name),
        'review_details':
        abu_service.get_abu_details(
            project_name,
            user_service.get_current_username(),
        ),
        'tools':
        tool_service.get_all_tools(),
        'annotation_summary':
        annotation_service.get_annotation_responses(
            project_name,
            user_service.get_current_username(),
        )
    }
예제 #3
0
def index():
    return {
        'user': user_service.get_display_name(),
        'projects': user_service.get_projects(),
        'tools': tool_service.get_all_tools(),
    }