gazette.models.principal

Classes

Principal

The principal is the political entity running the gazette app.

Module Contents

class gazette.models.principal.Principal(name: str = '', logo: str = '', logo_for_pdf: str = '', color: str = '', canton: str | None = None, on_accept: dict[str, Any] | None = None, time_zone: str = 'Europe/Zurich', help_link: str = '', publishing: bool = False, frontend: bool = False, sogc_import: dict[str, Any] | None = None, links: dict[str, str] | None = None, **kwargs: object)[source]

The principal is the political entity running the gazette app.

CANTONS[source]
canton[source]
name[source]
logo_for_pdf[source]
color[source]
on_accept[source]
time_zone[source]
publishing[source]
frontend[source]
sogc_import[source]
classmethod from_yaml(yaml_source: str) Self[source]