swissvotes.views.vote

Functions

view_vote(→ onegov.core.types.RenderData)

view_vote_percentages(→ onegov.core.types.JSON_ro)

view_vote_strengths(→ onegov.core.types.RenderData)

view_vote_campaign_material(→ onegov.core.types.RenderData)

upload_vote_attachments(→ RenderData | Response)

delete_vote(→ RenderData | Response)

view_file(→ depot.io.interfaces.StoredFile)

create_static_file_view(→ Callable[[SwissVote, ...)

view_manage_campaign_material(...)

upload_manage_campaign_material(→ None)

view_manage_campaign_material_yea(...)

upload_manage_campaign_material_yea(→ None)

view_manage_campaign_material_nay(...)

upload_manage_campaign_material_nay(→ None)

delete_vote_attachment(→ RenderData | Response)

Module Contents

swissvotes.views.vote.view_vote(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest, form: onegov.swissvotes.forms.AttachmentsSearchForm) onegov.core.types.RenderData[source]
swissvotes.views.vote.view_vote_percentages(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest) onegov.core.types.JSON_ro[source]
swissvotes.views.vote.view_vote_strengths(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest) onegov.core.types.RenderData[source]
swissvotes.views.vote.view_vote_campaign_material(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest) onegov.core.types.RenderData[source]
swissvotes.views.vote.upload_vote_attachments(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest, form: onegov.swissvotes.forms.AttachmentsForm) RenderData | Response[source]
swissvotes.views.vote.delete_vote(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest, form: onegov.form.Form) RenderData | Response[source]
swissvotes.views.vote.view_file(self: onegov.swissvotes.models.SwissVoteFile, request: onegov.swissvotes.request.SwissvotesRequest) depot.io.interfaces.StoredFile[source]
swissvotes.views.vote.create_static_file_view(attribute: str, locale: str) Callable[[SwissVote, SwissvotesRequest], Response][source]
swissvotes.views.vote.view_manage_campaign_material(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest) onegov.core.types.RenderData[source]
swissvotes.views.vote.upload_manage_campaign_material(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest) None[source]
swissvotes.views.vote.view_manage_campaign_material_yea(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest) onegov.core.types.RenderData[source]
swissvotes.views.vote.upload_manage_campaign_material_yea(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest) None[source]
swissvotes.views.vote.view_manage_campaign_material_nay(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest) onegov.core.types.RenderData[source]
swissvotes.views.vote.upload_manage_campaign_material_nay(self: onegov.swissvotes.models.SwissVote, request: onegov.swissvotes.request.SwissvotesRequest) None[source]
swissvotes.views.vote.delete_vote_attachment(self: onegov.swissvotes.models.SwissVoteFile, request: onegov.swissvotes.request.SwissvotesRequest, form: onegov.form.Form) RenderData | Response[source]