gazette.models.principal

Module Contents

Classes

Principal

The principal is the political entity running the gazette app.

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]
classmethod from_yaml(yaml_source: str) typing_extensions.Self[source]