election_day.views.archive

Functions

view_archive(→ onegov.core.types.RenderData)

Shows all the results from the elections and votes for a given year

view_archive_json(→ onegov.core.types.JSON_ro)

Shows all the results from the elections and votes for a given year

view_principal(→ onegov.core.types.RenderData)

Shows all the results from the elections and votes of the last election

view_principal_json(→ onegov.core.types.JSON_ro)

Shows all the results from the elections and votes of the last election

search_form(...)

view_archive_search(→ onegov.core.types.RenderData)

Shows all the results from the elections and votes of the last election

view_archive_download(→ morepath.request.Response)

Module Contents

election_day.views.archive.view_archive(self: onegov.election_day.collections.ArchivedResultCollection, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.RenderData[source]

Shows all the results from the elections and votes for a given year or date.

election_day.views.archive.view_archive_json(self: onegov.election_day.collections.ArchivedResultCollection, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.JSON_ro[source]

Shows all the results from the elections and votes for a given year or date as JSON.

election_day.views.archive.view_principal(self: onegov.election_day.models.Principal, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.RenderData[source]

Shows all the results from the elections and votes of the last election day. It’s the landing page.

election_day.views.archive.view_principal_json(self: onegov.election_day.models.Principal, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.JSON_ro[source]

Shows all the results from the elections and votes of the last election day as JSON.

election_day.views.archive.search_form(model: onegov.election_day.collections.SearchableArchivedResultCollection, request: onegov.election_day.request.ElectionDayRequest, form: None = None) type[onegov.election_day.forms.ArchiveSearchFormVote | onegov.election_day.forms.ArchiveSearchFormElection][source]

Shows all the results from the elections and votes of the last election day. It’s the landing page.

election_day.views.archive.view_archive_download(self: onegov.election_day.models.Principal, request: onegov.election_day.request.ElectionDayRequest) morepath.request.Response[source]