election_day.layouts.election_compound ====================================== .. py:module:: election_day.layouts.election_compound Classes ------- .. autoapisummary:: election_day.layouts.election_compound.ElectionCompoundLayout Module Contents --------------- .. py:class:: ElectionCompoundLayout(model: onegov.election_day.models.ElectionCompound, request: onegov.election_day.request.ElectionDayRequest, tab: str | None = None) Bases: :py:obj:`onegov.election_day.layouts.detail.DetailLayout` A common base layout for election and votes which caches some values used in the macros. .. py:attribute:: model :type: onegov.election_day.models.ElectionCompound .. py:attribute:: tab :value: None .. py:attribute:: tabs_with_embedded_tables :value: ('seat-allocation', 'list-groups', 'superregions', 'districts', 'candidates', 'party-strengths',... .. py:attribute:: majorz :value: False .. py:attribute:: proporz :value: True .. py:attribute:: type :value: 'compound' .. py:method:: table_link(query_params: dict[str, str] | None = None) -> str | None .. py:property:: all_tabs :type: tuple[str, Ellipsis] Return the tabs in order of their appearance. .. py:property:: results :type: list[onegov.election_day.models.election_compound.mixins.ResultRow] .. py:property:: totals :type: onegov.election_day.models.election_compound.mixins.TotalRow .. py:property:: has_districts :type: bool .. py:property:: has_superregions :type: bool .. py:method:: label(value: str) -> str .. py:method:: title(tab: str | None = None) -> str .. py:method:: tab_visible(tab: str | None) -> bool .. py:property:: has_party_results :type: bool .. py:property:: has_party_panachage_results :type: bool .. py:property:: visible :type: bool .. py:property:: main_view :type: str .. py:property:: menu :type: election_day.layouts.election.NestedMenu .. py:property:: pdf_path :type: str | None Returns the path to the PDF file or None, if it is not available. .. py:property:: svg_path :type: str | None Returns the path to the SVG or None, if it is not available. .. py:property:: svg_link :type: str Returns a link to the SVG download view. .. py:property:: svg_name :type: str Returns a nice to read SVG filename. .. py:property:: summarize :type: bool .. py:property:: related_compounds :type: list[tuple[str | None, str]]