Lecture#

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

Tornado Handler class for http requests to /lectures.

async get()[source]#

Returns all lectures the user can access.

hub_api_base_path: str#
async post()[source]#

Creates a new lecture from a “ghost”-lecture.

Raises

HTTPError – throws err if “ghost”-lecture was not found

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

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

async delete(lecture_id: int)[source]#

“Soft”-delete a lecture. Softdeleting: lecture is still saved in the datastore but the users have not access to it.

Parameters

lecture_id (int) – id of the lecture

Raises

HTTPError – throws err if lecture was already deleted or was not found

async get(lecture_id: int)[source]#

Finds lecture with the given lecture id. :param lecture_id: id of lecture :return: lecture with given id

hub_api_base_path: str#
async put(lecture_id: int)[source]#

Updates a lecture.

Parameters

lecture_id (int) – id of the lecture

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

Tornado Handler class for http requests to /lectures/{lecture_id}/users.

async get(lecture_id: int)[source]#

Finds all users of a lecture and sorts them by roles. :param lecture_id: id of the lecture :return: user, tutor and instructor list in a json object

hub_api_base_path: str#