oioioi.dashboard.contest_dashboard¶
Module Contents¶
Classes¶
Functions¶
|
Decorator for a view, which registers it as a contest dashboard. |
Unregisters a contest dashboard view. |
|
|
Attributes¶
- class oioioi.dashboard.contest_dashboard._ContestDashboardEntry(view, condition)[source]¶
Bases:
object
- oioioi.dashboard.contest_dashboard.register_contest_dashboard_view(order=sys.maxsize, condition=None)[source]¶
Decorator for a view, which registers it as a contest dashboard.
A view registered this way can be shown as the main page of the contest. If multiple views are registered, one with the lowest
orderfor which theconditionholds true is selected.- Parameters
order (int) – value determining the order in which the dashboard is selected
condition (
oioioi.base.permissions.Condition) – decides if a dashboard can be selected