election_day.views.vote.main ============================ .. py:module:: election_day.views.vote.main Functions --------- .. autoapisummary:: election_day.views.vote.main.view_vote_head election_day.views.vote.main.view_vote election_day.views.vote.main.view_vote_json election_day.views.vote.main.view_vote_summary election_day.views.vote.main.view_vote_pdf election_day.views.vote.main.view_vote_header_as_widget Module Contents --------------- .. py:function:: view_vote_head(self: onegov.election_day.models.Vote, request: onegov.election_day.request.ElectionDayRequest) -> None .. py:function:: view_vote(self: onegov.election_day.models.Vote, request: onegov.election_day.request.ElectionDayRequest) -> webob.response.Response " The main view. .. py:function:: view_vote_json(self: onegov.election_day.models.Vote, request: onegov.election_day.request.ElectionDayRequest) -> onegov.election_day.types.VoteJson " The main view as JSON. .. py:function:: view_vote_summary(self: onegov.election_day.models.Vote, request: onegov.election_day.request.ElectionDayRequest) -> onegov.core.types.JSON_ro View the summary of the vote as JSON. .. py:function:: view_vote_pdf(self: onegov.election_day.models.Vote, request: onegov.election_day.request.ElectionDayRequest) -> onegov.core.types.RenderData View the generated PDF. .. py:function:: view_vote_header_as_widget(self: onegov.election_day.models.Vote, request: onegov.election_day.request.ElectionDayRequest) -> onegov.core.types.RenderData A static link to the top bar showing the vote result as widget.