:py:mod:`oioioi.zeus.problem_sources` ===================================== .. py:module:: oioioi.zeus.problem_sources Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: oioioi.zeus.problem_sources.ZeusProblemSource .. py:class:: ZeusProblemSource(zeus_instances=None) Bases: :py:obj:`oioioi.problems.problem_sources.UploadedPackageSource` .. py:attribute:: key :annotation: = zeus .. py:attribute:: short_description .. py:method:: choose_backend(path, original_filename=None) Returns the dotted name of a :class:`~oioioi.package.ProblemPackageBackend` suitable for processing a given package. This function is called when an unpacking environment is created, i.e. from :meth:`~oioioi.problems.problem_sources.ProblemSource.create_env`. .. py:method:: create_env(user, contest, path, package, form, round_id=None, visibility=Problem.VISIBILITY_FRIENDS, existing_problem=None, original_filename=None) Creates an environment which will be later passed to :func:`~oioioi.problems.unpackmgr.unpackmgr_job`. .. py:method:: make_form(request, contest, existing_problem=None) Creates a form, which can be later filled in by the user with information necessary for obtaining the problem package. If the request method is ``POST``, then the form should be filled with its data.