inginious.frontend.pages package¶
Frontend pages (controllers)
Subpackages¶
- inginious.frontend.pages.api package
- inginious.frontend.pages.course_admin package
- Submodules
- inginious.frontend.pages.course_admin.audience_edit module
- inginious.frontend.pages.course_admin.danger_zone module
- inginious.frontend.pages.course_admin.settings module
- inginious.frontend.pages.course_admin.student_list module
CourseStudentListPageCourseStudentListPage.GET_AUTH()CourseStudentListPage.POST_AUTH()CourseStudentListPage.get_audiences_params()CourseStudentListPage.get_requested_field_user_info()CourseStudentListPage.get_student_list_params()CourseStudentListPage.get_user_lists()CourseStudentListPage.methodsCourseStudentListPage.page()CourseStudentListPage.post_audiences()CourseStudentListPage.post_groups()CourseStudentListPage.post_student_list()CourseStudentListPage.update_group()
- inginious.frontend.pages.course_admin.submission module
- inginious.frontend.pages.course_admin.task_edit module
- inginious.frontend.pages.course_admin.task_edit_file module
CourseTaskFileUploadCourseTaskFilesCourseTaskFiles.GET_AUTH()CourseTaskFiles.POST_AUTH()CourseTaskFiles.action_create()CourseTaskFiles.action_delete()CourseTaskFiles.action_download()CourseTaskFiles.action_edit()CourseTaskFiles.action_edit_save()CourseTaskFiles.action_rename()CourseTaskFiles.action_upload()CourseTaskFiles.get_task_filelist()CourseTaskFiles.methodsCourseTaskFiles.show_tab_file()CourseTaskFiles.verify_path()
- inginious.frontend.pages.course_admin.task_list module
- inginious.frontend.pages.course_admin.utils module
Submodules¶
inginious.frontend.pages.group module¶
Index page
- class inginious.frontend.pages.group.GroupPage[source]¶
Bases:
INGIniousAuthPageGroup page
- methods: t.ClassVar[t.Collection[str] | None] = {'GET', 'POST'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]) asrouteandadd_url_ruleby default.
inginious.frontend.pages.course module¶
Course page
- class inginious.frontend.pages.course.CoursePage[source]¶
Bases:
INGIniousAuthPageCourse page
- methods: t.ClassVar[t.Collection[str] | None] = {'GET', 'POST'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]) asrouteandadd_url_ruleby default.
Displays the course_unavailable page or the course registration page
inginious.frontend.pages.index module¶
Index page
- class inginious.frontend.pages.index.IndexPage[source]¶
Bases:
INGIniousStaticPageIndex page
- methods: t.ClassVar[t.Collection[str] | None] = {'GET', 'POST'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]) asrouteandadd_url_ruleby default.
inginious.frontend.pages.maintenance module¶
Maintenance page
inginious.frontend.pages.tasks module¶
Task page
- class inginious.frontend.pages.tasks.BaseTaskPage(calling_page)[source]¶
Bases:
objectDisplay a task (and allow to reload old submission/file uploaded during a submission)
- class inginious.frontend.pages.tasks.TaskPage[source]¶
Bases:
INGIniousAuthPage- methods: t.ClassVar[t.Collection[str] | None] = {'GET', 'POST'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]) asrouteandadd_url_ruleby default.
- class inginious.frontend.pages.tasks.TaskPageStaticDownload[source]¶
Bases:
INGIniousPageAllow to download files stored in the task folder
- methods: t.ClassVar[t.Collection[str] | None] = {'GET', 'POST'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]) asrouteandadd_url_ruleby default.
inginious.frontend.pages.utils module¶
Some utils for all the pages
- class inginious.frontend.pages.utils.INGIniousAdministratorPage[source]¶
Bases:
INGIniousAuthPageAugmented version of INGIniousAuthPage that checks if user is administrator (superadmin).
- GET(*args, **kwargs)[source]¶
Checks if user is superadmin and calls GET_AUTH or performs logout. Otherwise, returns the login template.
- POST(*args, **kwargs)[source]¶
Checks if user is superadmin and calls POST_AUTH. Otherwise, returns the forbidden template.
- methods: t.ClassVar[t.Collection[str] | None] = {'GET', 'POST'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]) asrouteandadd_url_ruleby default.
- class inginious.frontend.pages.utils.INGIniousAuthPage[source]¶
Bases:
INGIniousPageAugmented version of INGIniousPage that checks if user is authenticated.
- GET(*args, **kwargs)[source]¶
Checks if user is authenticated and calls GET_AUTH or performs logout. Otherwise, returns the login template.
- POST(*args, **kwargs)[source]¶
Checks if user is authenticated and calls POST_AUTH or performs login and calls GET_AUTH. Otherwise, returns the login template.
- methods: t.ClassVar[t.Collection[str] | None] = {'GET', 'POST'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]) asrouteandadd_url_ruleby default.
- class inginious.frontend.pages.utils.INGIniousPage[source]¶
Bases:
MethodViewA base for all the pages of the INGInious webapp. Contains references to the PluginManager, the CourseFactory, and the SubmissionManager
- property is_lti_page¶
True if the current page allows LTI sessions. False else.
- property logger: Logger¶
Logger
- methods: t.ClassVar[t.Collection[str] | None] = {'GET', 'POST'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]) asrouteandadd_url_ruleby default.
- property submission_manager: WebAppSubmissionManager¶
Returns the submission manager singleton
- property user_manager: UserManager¶
Returns the user manager singleton
- class inginious.frontend.pages.utils.INGIniousStaticPage[source]¶
Bases:
INGIniousPage- cache = {}¶
- methods: t.ClassVar[t.Collection[str] | None] = {'GET', 'POST'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]) asrouteandadd_url_ruleby default.
- class inginious.frontend.pages.utils.LogOutPage[source]¶
Bases:
INGIniousAuthPage- methods: t.ClassVar[t.Collection[str] | None] = {'GET', 'POST'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]) asrouteandadd_url_ruleby default.
- class inginious.frontend.pages.utils.SignInPage[source]¶
Bases:
INGIniousAuthPage- GET()[source]¶
Checks if user is authenticated and calls GET_AUTH or performs logout. Otherwise, returns the login template.
- methods: t.ClassVar[t.Collection[str] | None] = {'GET', 'POST'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]) asrouteandadd_url_ruleby default.