election_day.views.upload.wabsti_exporter

Functions

authenticated_source(...)

view_upload_wabsti_vote(→ onegov.core.types.RenderData)

Upload vote results using the WabstiCExportert 2.2+.

view_upload_wabsti_majorz(→ onegov.core.types.RenderData)

Upload election results using the WabstiCExportert 2.2+.

view_upload_wabsti_proporz(→ onegov.core.types.RenderData)

Upload election results using the WabstiCExportert 2.2+.

Module Contents

election_day.views.upload.wabsti_exporter.authenticated_source(request: onegov.election_day.request.ElectionDayRequest) onegov.election_day.models.DataSource[source]
election_day.views.upload.wabsti_exporter.view_upload_wabsti_vote(self: Canton | Municipality, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.RenderData[source]

Upload vote results using the WabstiCExportert 2.2+.

Example usage:
curl http://localhost:8080/onegov_election_day/xx/upload-wabsti-vote

–user :<token> –header “Accept-Language: de_CH” –form “sg_gemeinden=@SG_Gemeinden.csv” –form “sg_geschafte=@SG_Geschaefte.csv

election_day.views.upload.wabsti_exporter.view_upload_wabsti_majorz(self: Canton | Municipality, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.RenderData[source]

Upload election results using the WabstiCExportert 2.2+.

Example usage:
curl http://localhost:8080/onegov_election_day/xx/upload-wabsti-majorz

–user :<token> –header “Accept-Language: de_CH” –form “wm_gemeinden=@WM_Gemeinden.csv” –form “wm_kandidaten=@WM_Kandidaten.csv” –form “wm_kandidatengde=@WM_KandidatenGde.csv” –form “wm_wahl=@WM_Wahl.csv” –form “wmstatic_gemeinden=@WMStatic_Gemeinden.csv

election_day.views.upload.wabsti_exporter.view_upload_wabsti_proporz(self: Canton | Municipality, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.RenderData[source]

Upload election results using the WabstiCExportert 2.2+.

Example usage:
curl http://localhost:8080/onegov_election_day/xx/upload-wabsti-proporz

–user :<token> –header “Accept-Language: de_CH” –form “wp_gemeinden=@WP_Gemeinden.csv” –form “wp_kandidaten=@WP_Kandidaten.csv” –form “wp_kandidatengde=@WP_KandidatenGde.csv” –form “wp_listen=@WP_Listen.csv” –form “wp_listengde=@WP_ListenGde.csv” –form “wp_wahl=@WP_Wahl.csv” –form “wpstatic_gemeinden=@WPStatic_Gemeinden.csv” –form “wpstatic_kandidaten=@WPStatic_Kandidaten.csv