swissvotes.models.actor

Classes

Actor

A helper class to translate political actors (parties, associations).

Module Contents

class swissvotes.models.actor.Actor(name: str)[source]

A helper class to translate political actors (parties, associations).

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

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

All known parties.

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

All known associations.

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