election_day.screen_widgets.election_compound

Attributes

ElectionCompoundWidget

Classes

ElectionCompoundSeatAllocationTableWidget

ElectionCompoundCandidatesTableWidget

ElectionCompoundListGroupsTableWidget

ElectionCompoundPartyStrengthsTableWidget

ElectionCompoundDistrictsTableWidget

ElectionCompoundDistrictsMapWidget

ElectionCompoundSuperregionsTableWidget

ElectionCompoundSuperregionsMapWidget

ElectionCompoundListGroupsChartWidget

ElectionCompoundSeatAllocationChartWidget

ElectionCompoundPartyStrengthsChartWidget

Module Contents

election_day.screen_widgets.election_compound.ElectionCompoundWidget[source]
class election_day.screen_widgets.election_compound.ElectionCompoundSeatAllocationTableWidget(model: E | None = None)[source]

Bases: ElectionCompoundWidget

tag = 'election-compound-seat-allocation-table'[source]
template = Multiline-String[source]
Show Value
"""
        <xsl:template match="election-compound-seat-allocation-table">
            <div class="{@class}">
                <tal:block
                    metal:use-macro="layout.macros['election-compound-seat-allocation-table']"
                    />
            </div>
        </xsl:template>
    """
usage = '<election-compound-seat-allocation-table class=""/>'[source]
get_variables(layout: onegov.election_day.layouts.DefaultLayout) dict[str, Any][source]
class election_day.screen_widgets.election_compound.ElectionCompoundCandidatesTableWidget(model: E | None = None)[source]

Bases: ElectionCompoundWidget

tag = 'election-compound-candidates-table'[source]
template = Multiline-String[source]
Show Value
"""
        <xsl:template match="election-compound-candidates-table">
            <div class="{@class}">
                <tal:block
                    metal:use-macro="layout.macros['election-compound-candidates-table']"
                    />
            </div>
        </xsl:template>
    """
usage = '<election-compound-candidates-table class=""/>'[source]
get_variables(layout: onegov.election_day.layouts.DefaultLayout) dict[str, Any][source]
class election_day.screen_widgets.election_compound.ElectionCompoundListGroupsTableWidget(model: E | None = None)[source]

Bases: ElectionCompoundWidget

tag = 'election-compound-list-groups-table'[source]
template = Multiline-String[source]
Show Value
"""
        <xsl:template match="election-compound-list-groups-table">
            <div class="{@class}">
                <tal:block
                    metal:use-macro="layout.macros['election-compound-list-groups-table']"
                    />
            </div>
        </xsl:template>
    """
usage = '<election-compound-list-groups-table class="" />'[source]
get_variables(layout: onegov.election_day.layouts.DefaultLayout) dict[str, Any][source]
class election_day.screen_widgets.election_compound.ElectionCompoundPartyStrengthsTableWidget(model: E | None = None)[source]

Bases: ElectionCompoundWidget

tag = 'election-compound-party-strengths-table'[source]
template = Multiline-String[source]
Show Value
"""
        <xsl:template match="election-compound-party-strengths-table">
            <div class="{@class}" tal:define="year '{@year}'">
                <tal:block
                    metal:use-macro="layout.macros['party-strengths-table']"
                    />
            </div>
        </xsl:template>
    """
usage = '<election-compound-party-strengths-table year="" class=""/>'[source]
get_variables(layout: onegov.election_day.layouts.DefaultLayout) dict[str, Any][source]
class election_day.screen_widgets.election_compound.ElectionCompoundDistrictsTableWidget(model: E | None = None)[source]

Bases: ElectionCompoundWidget

tag = 'election-compound-districts-table'[source]
template = Multiline-String[source]
Show Value
"""
        <xsl:template match="election-compound-districts-table">
            <div class="{@class}">
                <tal:block
                    metal:use-macro="layout.macros['election-compound-districts-table']"
                    />
            </div>
        </xsl:template>
    """
usage = '<election-compound-districts-table class=""/>'[source]
get_variables(layout: onegov.election_day.layouts.DefaultLayout) dict[str, Any][source]
class election_day.screen_widgets.election_compound.ElectionCompoundDistrictsMapWidget(model: E | None = None)[source]

Bases: ElectionCompoundWidget

tag = 'election-compound-districts-map'[source]
template = Multiline-String[source]
Show Value
"""
        <xsl:template match="election-compound-districts-map">
            <div class="{@class}">
                <tal:block
                    metal:use-macro="layout.macros['election-compound-districts-map']"
                    />
            </div>
        </xsl:template>
    """
usage = '<election-compound-districts-map class=""/>'[source]
get_variables(layout: onegov.election_day.layouts.DefaultLayout) dict[str, Any][source]
class election_day.screen_widgets.election_compound.ElectionCompoundSuperregionsTableWidget(model: E | None = None)[source]

Bases: ElectionCompoundWidget

tag = 'election-compound-superregions-table'[source]
template = Multiline-String[source]
Show Value
"""
        <xsl:template match="election-compound-superregions-table">
            <div class="{@class}">
                <tal:block
                    metal:use-macro="layout.macros['election-compound-superregions-table']"
                    />
            </div>
        </xsl:template>
    """
usage = '<election-compound-superregions-table class=""/>'[source]
get_variables(layout: onegov.election_day.layouts.DefaultLayout) dict[str, Any][source]
class election_day.screen_widgets.election_compound.ElectionCompoundSuperregionsMapWidget(model: E | None = None)[source]

Bases: ElectionCompoundWidget

tag = 'election-compound-superregions-map'[source]
template = Multiline-String[source]
Show Value
"""
        <xsl:template match="election-compound-superregions-map">
            <div class="{@class}">
                <tal:block
                    metal:use-macro="layout.macros['election-compound-superregions-map']"
                    />
            </div>
        </xsl:template>
    """
usage = '<election-compound-superregions-map class=""/>'[source]
get_variables(layout: onegov.election_day.layouts.DefaultLayout) dict[str, Any][source]
class election_day.screen_widgets.election_compound.ElectionCompoundListGroupsChartWidget(model: E | None = None)[source]

Bases: onegov.election_day.screen_widgets.generic.ChartWidget[onegov.election_day.models.ElectionCompound]

tag = 'election-compound-list-groups-chart'[source]
template = Multiline-String[source]
Show Value
"""
        <xsl:template match="election-compound-list-groups-chart">
            <div class="{@class}">
                <tal:block
                    metal:use-macro="layout.macros['list-groups-chart']"
                    />
            </div>
        </xsl:template>
    """
usage = '<election-compound-list-groups-chart class=""/>'[source]
class election_day.screen_widgets.election_compound.ElectionCompoundSeatAllocationChartWidget(model: E | None = None)[source]

Bases: onegov.election_day.screen_widgets.generic.ChartWidget[onegov.election_day.models.ElectionCompound]

tag = 'election-compound-seat-allocation-chart'[source]
template = Multiline-String[source]
Show Value
"""
        <xsl:template match="election-compound-seat-allocation-chart">
            <div class="{@class}">
                <tal:block
                    metal:use-macro="layout.macros['seat-allocation-chart']"
                    />
            </div>
        </xsl:template>
    """
usage = '<election-compound-seat-allocation-chart class=""/>'[source]
class election_day.screen_widgets.election_compound.ElectionCompoundPartyStrengthsChartWidget(model: E | None = None)[source]

Bases: onegov.election_day.screen_widgets.generic.ChartWidget[onegov.election_day.models.ElectionCompound]

tag = 'election-compound-party-strengths-chart'[source]
template = Multiline-String[source]
Show Value
"""
        <xsl:template match="election-compound-party-strengths-chart">
            <div class="{@class}"
                 tal:define="horizontal '{@horizontal}'=='true'">
                <tal:block
                    metal:use-macro="layout.macros['party-strengths-chart']"
                    />
            </div>
        </xsl:template>
    """
usage = '<election-compound-party-strengths-chart horizontal="false" class=""/>'[source]