election_day.views.manage.votes

Functions

view_votes(→ onegov.core.types.RenderData)

View a list of all votes.

create_vote(...)

Create a new vote.

edit_vote(...)

Edit an existing vote.

clear_vote(...)

Clear the results of a vote.

clear_election_media(...)

Deletes alls SVGs and PDFs of this vote.

delete_vote(...)

Delete an existing vote.

trigger_vote(...)

Trigger the notifications related to a vote.

Module Contents

election_day.views.manage.votes.view_votes(self: onegov.election_day.collections.VoteCollection, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.RenderData[source]

View a list of all votes.

election_day.views.manage.votes.create_vote(self: onegov.election_day.collections.VoteCollection, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.VoteForm) onegov.core.types.RenderData | webob.response.Response[source]

Create a new vote.

election_day.views.manage.votes.edit_vote(self: onegov.election_day.models.Vote, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.VoteForm) onegov.core.types.RenderData | webob.response.Response[source]

Edit an existing vote.

election_day.views.manage.votes.clear_vote(self: onegov.election_day.models.Vote, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.ClearResultsForm) onegov.core.types.RenderData | webob.response.Response[source]

Clear the results of a vote.

election_day.views.manage.votes.clear_election_media(self: onegov.election_day.models.Vote, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.EmptyForm) onegov.core.types.RenderData | webob.response.Response[source]

Deletes alls SVGs and PDFs of this vote.

election_day.views.manage.votes.delete_vote(self: onegov.election_day.models.Vote, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.EmptyForm) onegov.core.types.RenderData | webob.response.Response[source]

Delete an existing vote.

election_day.views.manage.votes.trigger_vote(self: onegov.election_day.models.Vote, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.TriggerNotificationForm) onegov.core.types.RenderData | webob.response.Response[source]

Trigger the notifications related to a vote.