election_day.views.upload ========================= .. py:module:: election_day.views.upload Submodules ---------- .. toctree:: :maxdepth: 1 /autoapi/election_day/views/upload/election/index /autoapi/election_day/views/upload/election_compound/index /autoapi/election_day/views/upload/parties/index /autoapi/election_day/views/upload/rest/index /autoapi/election_day/views/upload/vote/index /autoapi/election_day/views/upload/wabsti_exporter/index Functions --------- .. autoapisummary:: election_day.views.upload.unsupported_year_error election_day.views.upload.set_locale election_day.views.upload.translate_errors Package Contents ---------------- .. py:function:: unsupported_year_error(year: int) -> onegov.election_day.formats.imports.common.FileImportError .. py:function:: set_locale(request: onegov.election_day.request.ElectionDayRequest) -> None Sets the locale of the request by the Accept-Language header. .. py:function:: translate_errors(errors: dict[str, list[Any]], request: onegov.election_day.request.ElectionDayRequest) -> None Translates and interpolates the given error messages.