oioioi.zeus.package

Module Contents

Classes

ZeusPackage

ZeusPackageCreator

Responsible for packing SinolPackages.

ZeusPackageBackend

Backend that use

Attributes

oioioi.zeus.package.logger[source]
class oioioi.zeus.package.ZeusPackage(path, original_filename=None)[source]

Bases: oioioi.sinolpack.package.SinolPackage

controller_name = oioioi.zeus.controllers.ZeusProblemController[source]
package_backend_name = oioioi.zeus.package.ZeusPackageBackend[source]
_find_main_dir()[source]

Looks for the directory which contains at least the in/ and out/ subdirectories. Only one such directory should be found. Otherwise None is returned.

_save_zeus_data()[source]
_process_package()[source]
class oioioi.zeus.package.ZeusPackageCreator(problem)[source]

Bases: oioioi.sinolpack.package.SinolPackageCreator

Responsible for packing SinolPackages.

_pack_tests()[source]
class oioioi.zeus.package.ZeusPackageBackend[source]

Bases: oioioi.sinolpack.package.SinolPackageBackend

Backend that use SinolPackage to unpack and SinolPackageCreator to pack sinol packages.

description[source]
package_class[source]
identify(path, original_filename=None)[source]

Checks if the backend is suitable for processing the specified problem package.

Parameters
  • path – a path to the processed problem package

  • original_filename – the name of the package specified by the

uploading user.

Returns True if the backend can handle the specified problem package file.

pack(problem)[source]

Creates a package from problem, returns a django.http.HttpResponse instance.

Should raise NotImplementedError if creating packages is not supported.