oioioi.zeus.controllers
¶
Module Contents¶
Classes¶
Defines rules for handling specific problem. |
- class oioioi.zeus.controllers.ZeusProblemController(problem)[source]¶
Bases:
oioioi.programs.controllers.ProgrammingProblemController
Defines rules for handling specific problem.
Every method should:
be called from contest controller
or be specific for problems that this controller controls
Please note that a global problem instance exists for each problem. That problem instance has no contest (
contest
isNone
), so methods can’t be overridden by a contest controller which means they behave in a default way.- description¶
- fill_evaluation_environ(environ, submission, **kwargs)[source]¶
Fills a minimal environment with evaluation receipt and other values required by the evaluation machinery.
Passed
environ
should already contain entries for the actiual data to be judged (for example the source file to evaluate).Details on which keys need to be present should be specified by particular subclasses.
As the result,
environ
will be filled at least with a suitable evaluationrecipe
.