oioioi.teachers.controllers¶
Module Contents¶
Classes¶
A base class for classes which should have a list of subclasses |
|
Ranking system uses two types of keys: "partial key"s and "full key"s. |
|
Contains the contest logic and rules. |
- class oioioi.teachers.controllers.TeacherRegistrationController(contest)[source]¶
Bases:
oioioi.participants.controllers.ParticipantsControllerA base class for classes which should have a list of subclasses available.
The list of subclasses is available in their
subclassesclass attributes. Classes which have explicitly setabstractclass attribute toTrueare not added tosubclasses.If a class has
modules_with_subclassesattribute (list or string), then specified modules for all installed applications can be loaded by callingload_subclasses().
- class oioioi.teachers.controllers.TeacherRankingController(contest)[source]¶
Bases:
oioioi.rankings.controllers.DefaultRankingControllerRanking system uses two types of keys: “partial key”s and “full key”s. Please note that full keys are abbreviated in the code as “key”s.
A pair (request, partial_key) should allow to build a full key, while a partial_key can always be extracted from the full key. partial keys identify the rounds to display and are used everywhere outside controllers and rankingsd (e.g. in views and urls). However, the actual ranking contents can depend on many other factors, like user permissions. This was the reason for introduction of full keys, which are always sufficient to choose the right data for serialization and display.
- class oioioi.teachers.controllers.TeacherContestController(contest)[source]¶
Bases:
oioioi.programs.controllers.ProgrammingContestControllerContains the contest logic and rules.
This is the computerized implementation of the contest’s official rules.