agency.data_import
Attributes
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Generates an agency id based on each organisation and sub organisation word |
|
Generates an agency id based on each organisation and sub organisation |
|
|
|
|
|
|
|
|
|
|
|
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.agency_id_agency_lu(words: Iterable[Any]) str [source]
Generates an agency id based on each organisation and sub organisation word
- agency.data_import.agency_id_person_lu(line: onegov.core.csv.DefaultRow) str [source]
Generates an agency id based on each organisation and sub organisation name for a person.
- agency.data_import.import_lu_people(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_lu_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_lu_data(data_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]