swissvotes.models.region

Module Contents

Classes

Region

A helper class to translate geographical cantons.

class swissvotes.models.region.Region(name: str)[source]

A helper class to translate geographical cantons.

Each canton consists of an abbreviation and a label, and might be rendered as a html span.

property abbreviation: str[source]
property label: str[source]
__eq__(other: object) bool[source]

Return self==value.

static cantons() tuple[str, Ellipsis][source]

All known cantons.

html(request: onegov.swissvotes.request.SwissvotesRequest) str[source]