Lecture#
- class LectureBaseHandler(application: grader_service.server.GraderServer, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)[source]#
Tornado Handler class for http requests to /lectures.
- hub_api_base_path: str#
- 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#
- 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#