def get_person_usage(person, project, start, end):
    """Return a tuple of cpu hours and number of jobs for a person in a
    specific project

    Keyword arguments:
    person --
    project -- The project the usage is from
    start -- start date
    end -- end date
    """
    try:
        cache = PersonCache.objects.get(
            person=person, project=project, date=datetime.date.today(),
            start=start, end=end)
        return cache.cpu_time, cache.no_jobs
    except PersonCache.DoesNotExist:
        return 0, 0
Return a tuple of cpu hours and number of jobs for a person in a
    specific project

    Keyword arguments:
    person --
    project -- The project the usage is from
    start -- start date
    end -- end date