@transaction.non_atomic_requests
@cache_control(no_cache=True, no_store=True, must_revalidate=True)
@require_level('staff')
def spoc_gradebook(request, course_id):
 course_key = CourseKey.from_string(course_id)
 course = get_course_with_access(request.user, 'staff', course_key, depth=None)
 (student_info, page) = get_grade_book_page(request, course, course_key)
 return render_to_response('courseware/gradebook.html', {'page': page, 'page_url': reverse('spoc_gradebook', kwargs={'course_id': unicode(course_key)}), 'students': student_info, 'course': course, 'course_id': course_key, 'staff_access': True, 'ordered_grades': sorted(course.grade_cutoffs.items(), key=(lambda i: i[1]), reverse=True)})

@ transaction . non_atomic_requests @ cache_control ( no_cache = True , no_store = True , must_revalidate = True ) @ require_level ( 'staff' ) def spoc_gradebook ( request , course_id ) : course_key = CourseKey . from_string ( course_id ) course = get_course_with_access ( request . user , 'staff' , course_key , depth = None ) ( student_info , page ) = get_grade_book_page ( request , course , course_key ) return render_to_response ( 'courseware/gradebook.html' , { 'page' : page , 'page_url' : reverse ( 'spoc_gradebook' , kwargs = { 'course_id' : unicode ( course_key ) } ) , 'students' : student_info , 'course' : course , 'course_id' : course_key , 'staff_access' : True , 'ordered_grades' : sorted ( course . grade_cutoffs . items ( ) , key = ( lambda i : i [ 1 ] ) , reverse = True ) } )
show the gradebook for this course: - only shown for courses with enrollment < settings .