swissvotes.models.actor ======================= .. py:module:: swissvotes.models.actor Classes ------- .. autoapisummary:: swissvotes.models.actor.Actor Module Contents --------------- .. py:class:: Actor(name: str) 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. .. py:attribute:: name .. py:method:: __eq__(other: object) -> bool .. py:method:: parties() -> tuple[str, Ellipsis] :staticmethod: All known parties. .. py:method:: associations() -> tuple[str, Ellipsis] :staticmethod: All known associations. .. py:property:: abbreviation :type: str .. py:property:: label :type: str .. py:method:: html(request: onegov.swissvotes.request.SwissvotesRequest) -> markupsafe.Markup