geonature.core.imports.tasks

Attributes

Functions

do_import_checks(self, import_id)

Verify the import data.

do_import_in_destination(self, import_id)

Insert valid transient data into the destination of an import.

_fill_cor_dataset_import(→ None)

Fills the correlation dataset for a specific import and its associated transient table.

notify_import_done(imprt)

Notify the authors of an import that it has finished.

Module Contents

geonature.core.imports.tasks.logger[source]
geonature.core.imports.tasks.do_import_checks(self, import_id)[source]

Verify the import data.

Parameters

import_idint

The ID of the import to verify.

geonature.core.imports.tasks.do_import_in_destination(self, import_id)[source]

Insert valid transient data into the destination of an import.

Parameters

import_idint

The ID of the import to insert data into the destination.

geonature.core.imports.tasks._fill_cor_dataset_import(imprt: geonature.core.imports.models.TImports, transient_table: sqlalchemy.sql.schema.Table) None[source]

Fills the correlation dataset for a specific import and its associated transient table.

Parameters

imprtImport

The import object containing the ID and destination data needed for dataset correlation.

transient_tablesqlalchemy.sql.schema.Table

The transient table linked to the import, used to fetch dataset IDs.

geonature.core.imports.tasks.notify_import_done(imprt: geonature.core.imports.models.TImports)[source]

Notify the authors of an import that it has finished.

Parameters

imprtTImports

The import that has finished.