election_day.formats.imports.election_compound.internal

Functions

import_election_compound_internal(...)

Tries to import the given file (internal format).

Module Contents

election_day.formats.imports.election_compound.internal.import_election_compound_internal(compound: onegov.election_day.models.ElectionCompound, principal: Canton | Municipality, file: IO[bytes], mimetype: str) list[onegov.election_day.formats.imports.common.FileImportError][source]

Tries to import the given file (internal format).

Does not support separate expat results.

Returns:

A list containing errors.