oioioi.contestlogo.controllers

Module Contents

Classes

LogoContestControllerMixin

Sets default empty contest logo and icons settings.

class oioioi.contestlogo.controllers.LogoContestControllerMixin[source]

Bases: object

Sets default empty contest logo and icons settings.

default_contestlogo_url()[source]

Returns a URL of an image which will be used as the contest logo.

If a contest admin specifies a contest logo URL in the contest settings view, it will be used instead of the one returned by this function.

The default implementation returns None.

Returns a contest logo link.

If a contest admin specifies a contest logo link in the contest settings view, it will be used instead of the one returned by this function.

The default implementation returns an empty string.

default_contesticons_urls()[source]

Returns a list of URLs of images which will be used to decorate the user side menu.

If a contest admin adds some icon urls in the contest settings view, they will be used instead of the urls returned by this function.

The default implementation returns an empty list.