swissvotes.models.region

Classes

Region

A helper class to translate geographical cantons.

Module Contents

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.

name[source]
__eq__(other: object) bool[source]
static cantons() tuple[str, Ellipsis][source]

All known cantons.

property abbreviation: str[source]
property label: str[source]
html(request: onegov.swissvotes.request.SwissvotesRequest) markupsafe.Markup[source]