Submission#

class SubmissionHandler(*args, **kwargs)[source]#

Tornado Handler class for http requests to /lectures/{lecture_id}/assignments/{assignment_id}/submissions.

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

Sends a GET-request to the grader service and returns submissions of a assignment

Parameters
  • lecture_id (int) – id of the lecture

  • assignment_id (int) – id of the assignment

class SubmissionObjectHandler(*args, **kwargs)[source]#

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

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

Sends a GET-request to the grader service and returns the properties of a submission

Parameters
  • lecture_id (int) – id of the lecture

  • assignment_id (int) – id of the assignment

  • submission_id (int) – id of the submission

async put(lecture_id: int, assignment_id: int, submission_id: int)[source]#

Sends a PUT-request to the grader service to update the properties of a submission

Parameters
  • lecture_id (int) – id of the lecture

  • assignment_id (int) – id of the assignment

  • submission_id (int) – id of the submission

class SubmissionPropertiesHandler(*args, **kwargs)[source]#

Tornado Handler class for http requests to /lectures/{lecture_id}/assignments/{assignment_id}/submissions/properties.

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

Sends a GET-request to the grader service and returns the properties of a submission

Parameters
  • lecture_id (int) – id of the lecture

  • assignment_id (int) – id of the assignment

  • submission_id (int) – id of the submission

async put(lecture_id: int, assignment_id: int, submission_id: int)[source]#

Sends a PUT-request to the grader service to update the properties of a submission

Parameters
  • lecture_id (int) – id of the lecture

  • assignment_id (int) – id of the assignment

  • submission_id (int) – id of the submission