election_day.screen_widgets.vote
Classes
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
|
Abstract base class for generic types. |
Module Contents
- class election_day.screen_widgets.vote.VoteCounterProposalTitleWidget(model: _E | None = None)[source]
Bases:
onegov.election_day.screen_widgets.generic.ModelBoundWidget
[onegov.election_day.models.Vote
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.vote.VoteTieBreakerTitleWidget(model: _E | None = None)[source]
Bases:
onegov.election_day.screen_widgets.generic.ModelBoundWidget
[onegov.election_day.models.ComplexVote
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.vote.VoteProposalResultBarWidget(model: _E | None = None)[source]
Bases:
onegov.election_day.screen_widgets.generic.ModelBoundWidget
[onegov.election_day.models.Vote
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.vote.VoteCounterProposalResultBarWidget(model: _E | None = None)[source]
Bases:
onegov.election_day.screen_widgets.generic.ModelBoundWidget
[onegov.election_day.models.ComplexVote
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.vote.VoteTieBreakerResultBarWidget(model: _E | None = None)[source]
Bases:
onegov.election_day.screen_widgets.generic.ModelBoundWidget
[onegov.election_day.models.ComplexVote
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.vote.VoteProposalEntitiesTableWidget(model: _E | None = None)[source]
Bases:
onegov.election_day.screen_widgets.generic.ModelBoundWidget
[onegov.election_day.models.Vote
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.vote.VoteCounterProposalEntitiesTableWidget(model: _E | None = None)[source]
Bases:
onegov.election_day.screen_widgets.generic.ModelBoundWidget
[onegov.election_day.models.ComplexVote
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- template = Multiline-String[source]
Show Value
""" <xsl:template match="vote-counter-proposal-entities-table"> <div class="{@class}"> <tal:block metal:use-macro="layout.macros['ballot-entities-table']" tal:define="ballot counter_proposal; results counter_proposal_results" /> </div> </xsl:template> """
- class election_day.screen_widgets.vote.VoteTieBreakerEntitiesTableWidget(model: _E | None = None)[source]
Bases:
onegov.election_day.screen_widgets.generic.ModelBoundWidget
[onegov.election_day.models.ComplexVote
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.vote.VoteProposalEntitiesMap(model: _E | None = None)[source]
Bases:
onegov.election_day.screen_widgets.generic.ModelBoundWidget
[onegov.election_day.models.Vote
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.vote.VoteCounterProposalEntitiesMap(model: _E | None = None)[source]
Bases:
onegov.election_day.screen_widgets.generic.ModelBoundWidget
[onegov.election_day.models.ComplexVote
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.vote.VoteTieBreakerEntitiesMap(model: _E | None = None)[source]
Bases:
onegov.election_day.screen_widgets.generic.ModelBoundWidget
[onegov.election_day.models.ComplexVote
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.vote.VoteProposalDistrictsMap(model: _E | None = None)[source]
Bases:
onegov.election_day.screen_widgets.generic.ModelBoundWidget
[onegov.election_day.models.Vote
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.vote.VoteCounterProposalDistrictsMap(model: _E | None = None)[source]
Bases:
onegov.election_day.screen_widgets.generic.ModelBoundWidget
[onegov.election_day.models.ComplexVote
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.vote.VoteTieBreakerDistrictsMap(model: _E | None = None)[source]
Bases:
onegov.election_day.screen_widgets.generic.ModelBoundWidget
[onegov.election_day.models.ComplexVote
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.vote.VoteProposalTurnoutWidget(model: _E | None = None)[source]
Bases:
onegov.election_day.screen_widgets.generic.ModelBoundWidget
[onegov.election_day.models.Vote
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.vote.VoteCounterProposalTurnoutWidget(model: _E | None = None)[source]
Bases:
onegov.election_day.screen_widgets.generic.ModelBoundWidget
[onegov.election_day.models.ComplexVote
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- class election_day.screen_widgets.vote.VoteTieBreakerTurnoutWidget(model: _E | None = None)[source]
Bases:
onegov.election_day.screen_widgets.generic.ModelBoundWidget
[onegov.election_day.models.ComplexVote
]Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default