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 = None[source]
name = ''[source]
logo_for_pdf = ''[source]
color = ''[source]
on_accept[source]
time_zone = 'Europe/Zurich'[source]
publishing = False[source]
frontend = False[source]
sogc_import[source]
classmethod from_yaml(yaml_source: str) Self[source]