def flatten_timeline(report, context):
    """Flattens the timeline into a list of tuples as report['timeline'].

    Looks for the timeline in content['timeline'] and sets it in
    report['timeline'].
    """
    timeline = context.get('timeline')
    if timeline is None:
        return
    statements = []
    for action in timeline.actions:
        statements.append(action.logTuple())
    report['timeline'] = statements
