oioioi.quizzes.problem_sources
¶
Module Contents¶
Classes¶
- class oioioi.quizzes.problem_sources.EmptyQuizSource[source]¶
Bases:
oioioi.problems.problem_sources.ProblemSource
- view(request, contest, existing_problem=None)[source]¶
Renders the view where the user can upload the file or point out where to get the problem from.
If the request method is
GET
, it should return rendered HTML, which will be injected in an appropriate div element.TemplateResponse
is fine, too.If the request method is
POST
, it should start the unpacking process. If no errors occur, it should returnHttpResponseRedirect
(e.g. to a view with problem packages queued for processing).