Esempio n. 1
0
def specific_problem_choice(aid):
    """User has picked an assignment and problem to grade."""
    problemname = request.POST.get('problem')
    first = queries.get_first_student(aid, problemname)
    redirect("/grade/%s/%s/%s" % (aid, problemname, first))
Esempio n. 2
0
def specific_submission():
    """Called after the user has picked which assignment they want to
    grade. Redirects to /grade/assignment/username"""
    aid = request.forms.get('assignment')
    first = queries.get_first_student(aid, None)
    redirect("/grade/%s/%s" % (aid, first))
Esempio n. 3
0
def grade_whole_pick():
    """User has picked an assignment"""
    aid = request.POST.get('assignment')
    section = request.POST.get('section')    
    first = queries.get_first_student(aid, section)
    redirect("/grade_whole/%s/%s/%s" % (aid, section, first))