agency.data_import
Attributes
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Module Contents
- agency.data_import.with_open(func: Callable[[CSVFile[DefaultRow], *Ts], T]) Callable[[StrOrBytesPath, *Ts], T] [source]
- agency.data_import.split_address_on_new_line(address: str, newline: bool = False) markupsafe.Markup [source]
- agency.data_import.get_agency_portrait(line: onegov.core.csv.DefaultRow) markupsafe.Markup | None [source]
- agency.data_import.import_bs_agencies(csvfile: onegov.core.csv.CSVFile[onegov.core.csv.DefaultRow], session: sqlalchemy.orm.Session, app: onegov.agency.app.AgencyApp) dict[str, onegov.agency.models.ExtendedAgency] [source]
- agency.data_import.import_bs_persons(csvfile: onegov.core.csv.CSVFile[onegov.core.csv.DefaultRow], agencies: Mapping[str, ExtendedAgency], session: sqlalchemy.orm.Session, app: onegov.agency.app.AgencyApp) list[onegov.agency.models.ExtendedPerson] [source]
- agency.data_import.import_bs_data(agency_file: _typeshed.StrOrBytesPath, person_file: _typeshed.StrOrBytesPath, request: onegov.agency.request.AgencyRequest, app: onegov.agency.app.AgencyApp) tuple[dict[str, onegov.agency.models.ExtendedAgency], list[onegov.agency.models.ExtendedPerson]] [source]
- agency.data_import.parse_agencies(csvfile: onegov.core.csv.CSVFile[onegov.core.csv.DefaultRow]) dict[str, str] [source]