election_day.views.manage.elections =================================== .. py:module:: election_day.views.manage.elections Functions --------- .. autoapisummary:: election_day.views.manage.elections.view_elections election_day.views.manage.elections.create_election election_day.views.manage.elections.edit_election election_day.views.manage.elections.clear_election election_day.views.manage.elections.clear_election_media election_day.views.manage.elections.delete_election election_day.views.manage.elections.trigger_election Module Contents --------------- .. py:function:: view_elections(self: onegov.election_day.collections.ElectionCollection, request: onegov.election_day.request.ElectionDayRequest) -> onegov.core.types.RenderData View a list of all elections. .. py:function:: create_election(self: onegov.election_day.collections.ElectionCollection, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.ElectionForm) -> onegov.core.types.RenderData | webob.response.Response Create a new election. .. py:function:: edit_election(self: onegov.election_day.models.Election, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.ElectionForm) -> onegov.core.types.RenderData | webob.response.Response Edit an existing election. .. py:function:: clear_election(self: onegov.election_day.models.Election, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.ClearResultsForm) -> onegov.core.types.RenderData | webob.response.Response Clear the results of an election. .. py:function:: clear_election_media(self: onegov.election_day.models.Election, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.EmptyForm) -> onegov.core.types.RenderData | webob.response.Response Deletes alls SVGs and PDFs of this election. .. py:function:: delete_election(self: onegov.election_day.models.Election, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.EmptyForm) -> onegov.core.types.RenderData | webob.response.Response Delete an existing election. .. py:function:: trigger_election(self: onegov.election_day.models.Election, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.TriggerNotificationForm) -> onegov.core.types.RenderData | webob.response.Response Trigger the notifications related to an election.