Grading#

class GenerateFeedbackHandler(application: grader_service.server.GraderServer, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)[source]#

Tornado Handler class for http requests to /lectures/{lecture_id}/assignments/{assignment_id}/grading/ {submission_id}/feedback.

async get(lecture_id: int, assignment_id: int, sub_id)[source]#

Starts the process of generating feedback for a submission.

Parameters
  • lecture_id (int) – id of the lecture

  • assignment_id (int) – id of the assignment

  • sub_id (int) – id of the submission

Raises

HTTPError – throws err if the submission was not found

hub_api_base_path: str#
on_finish()[source]#

Called after the end of a request.

Override this method to perform cleanup, logging, etc. This method is a counterpart to prepare. on_finish may not produce any output, as it is called after the response has been sent to the client.

class GradingAutoHandler(application: grader_service.server.GraderServer, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)[source]#

Tornado Handler class for http requests to /lectures/{lecture_id}/assignments/{assignment_id}/grading/ {submission_id}/auto.

async get(lecture_id: int, assignment_id: int, sub_id: int)[source]#

Starts the autograding process of a submission.

Parameters
  • lecture_id (int) – id of the lecture

  • assignment_id (int) – id of the assignment

  • sub_id (int) – id of the submission

Raises

HTTPError – throws err if the submission was not found

hub_api_base_path: str#
on_finish()[source]#

Called after the end of a request.

Override this method to perform cleanup, logging, etc. This method is a counterpart to prepare. on_finish may not produce any output, as it is called after the response has been sent to the client.