election_day.views.manage.elections

Functions

view_elections(→ onegov.core.types.RenderData)

View a list of all elections.

create_election(→ RenderData | Response)

Create a new election.

edit_election(→ RenderData | Response)

Edit an existing election.

clear_election(→ RenderData | Response)

Clear the results of an election.

clear_election_media(→ RenderData | Response)

Deletes alls SVGs and PDFs of this election.

delete_election(→ RenderData | Response)

Delete an existing election.

trigger_election(→ RenderData | Response)

Trigger the notifications related to an election.

Module Contents

election_day.views.manage.elections.view_elections(self: onegov.election_day.collections.ElectionCollection, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.RenderData[source]

View a list of all elections.

election_day.views.manage.elections.create_election(self: onegov.election_day.collections.ElectionCollection, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.ElectionForm) RenderData | Response[source]

Create a new election.

election_day.views.manage.elections.edit_election(self: onegov.election_day.models.Election, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.ElectionForm) RenderData | Response[source]

Edit an existing election.

election_day.views.manage.elections.clear_election(self: onegov.election_day.models.Election, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.ClearResultsForm) RenderData | Response[source]

Clear the results of an election.

election_day.views.manage.elections.clear_election_media(self: onegov.election_day.models.Election, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.EmptyForm) RenderData | Response[source]

Deletes alls SVGs and PDFs of this election.

election_day.views.manage.elections.delete_election(self: onegov.election_day.models.Election, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.EmptyForm) RenderData | Response[source]

Delete an existing election.

election_day.views.manage.elections.trigger_election(self: onegov.election_day.models.Election, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.TriggerNotificationForm) RenderData | Response[source]

Trigger the notifications related to an election.