swissvotes.views.vote ===================== .. py:module:: swissvotes.views.vote Functions --------- .. autoapisummary:: swissvotes.views.vote.view_vote swissvotes.views.vote.view_vote_percentages swissvotes.views.vote.view_vote_strengths swissvotes.views.vote.view_vote_campaign_material swissvotes.views.vote.upload_vote_attachments swissvotes.views.vote.delete_vote swissvotes.views.vote.view_file swissvotes.views.vote.create_static_file_view swissvotes.views.vote.view_manage_campaign_material swissvotes.views.vote.upload_manage_campaign_material swissvotes.views.vote.view_manage_campaign_material_yea swissvotes.views.vote.upload_manage_campaign_material_yea swissvotes.views.vote.view_manage_campaign_material_nay swissvotes.views.vote.upload_manage_campaign_material_nay swissvotes.views.vote.delete_vote_attachment Module Contents --------------- .. py:function:: view_vote(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest, form: onegov.swissvotes.forms.AttachmentsSearchForm) -> onegov.core.types.RenderData .. py:function:: view_vote_percentages(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest) -> onegov.core.types.JSON_ro .. py:function:: view_vote_strengths(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest) -> onegov.core.types.RenderData .. py:function:: view_vote_campaign_material(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest) -> onegov.core.types.RenderData .. py:function:: upload_vote_attachments(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest, form: onegov.swissvotes.forms.AttachmentsForm) -> onegov.core.types.RenderData | webob.Response .. py:function:: delete_vote(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest, form: onegov.form.Form) -> onegov.core.types.RenderData | webob.Response .. py:function:: view_file(self: onegov.swissvotes.models.SwissVoteFile, request: onegov.swissvotes.request.SwissvotesRequest) -> depot.io.interfaces.StoredFile .. py:function:: create_static_file_view(attribute: str, locale: str) -> collections.abc.Callable[[onegov.swissvotes.models.SwissVote, onegov.swissvotes.request.SwissvotesRequest], webob.Response] .. py:function:: view_manage_campaign_material(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest) -> onegov.core.types.RenderData .. py:function:: upload_manage_campaign_material(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest) -> None .. py:function:: view_manage_campaign_material_yea(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest) -> onegov.core.types.RenderData .. py:function:: upload_manage_campaign_material_yea(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest) -> None .. py:function:: view_manage_campaign_material_nay(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest) -> onegov.core.types.RenderData .. py:function:: upload_manage_campaign_material_nay(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest) -> None .. py:function:: delete_vote_attachment(self: onegov.swissvotes.models.SwissVoteFile, request: onegov.swissvotes.request.SwissvotesRequest, form: onegov.form.Form) -> onegov.core.types.RenderData | webob.Response