geonature.core.gn_meta.routes

Routes for gn_meta

Module Contents

Functions

synchronize_mtd()

get_datasets()

Get datasets list

get_af_from_id(id_af, af_list)

get_dataset(scope, id_dataset)

Get one dataset

delete_dataset(scope, ds_id)

Delete a dataset

uuid_report()

get the UUID report of a dataset

sensi_report([ds_id])

get the UUID report of a dataset

my_csv_resp(filename, data, columns, _header[, separator])

datasetHandler(dataset, data)

create_dataset()

Post one Dataset data

update_dataset(id_dataset, scope)

Post one Dataset data for update dataset

get_export_pdf_dataset(id_dataset, scope)

Get a PDF export of one dataset

get_acquisition_frameworks()

Get a simple list of AF without any nested relationships

get_acquisition_frameworks_list(scope)

Get all AF with their datasets

get_export_pdf_acquisition_frameworks(...)

Get a PDF export of one acquisition

get_acquisition_framework(scope, id_acquisition_framework)

Get one AF with nomenclatures

delete_acquisition_framework(scope, af_id)

Delete an acquisition framework

acquisitionFrameworkHandler(request, *, ...)

create_acquisition_framework()

Post one AcquisitionFramework data

updateAcquisitionFramework(id_acquisition_framework, scope)

Post one AcquisitionFramework data for update acquisition_framework

get_acquisition_framework_stats(id_acquisition_framework)

Get stats from one AF

get_acquisition_framework_bbox(id_acquisition_framework)

Get BBOX from one AF

publish_acquisition_framework_mail(af)

Method for sending a mail during the publication process

publish_acquisition_framework(af_id)

Publish an acquisition framework

mtd_sync(id_role, id_af)



Attributes

routes

log

geonature.core.gn_meta.routes.routes[source]
geonature.core.gn_meta.routes.log[source]
geonature.core.gn_meta.routes.synchronize_mtd()[source]
geonature.core.gn_meta.routes.get_datasets()[source]

Get datasets list

Query boolean active:

filter on active fiel

Query string create:

filter on C permission for the module_code specified (we can specify the object_code by adding a . between both)

Query int id_acquisition_framework:

get only dataset of given AF

Renvoie:

list<TDatasets>

geonature.core.gn_meta.routes.get_af_from_id(id_af, af_list)[source]
geonature.core.gn_meta.routes.get_dataset(scope, id_dataset)[source]

Get one dataset

Paramètres:
  • id_dataset – the id_dataset

  • type – int

Renvoie:

dict<TDataset>

geonature.core.gn_meta.routes.delete_dataset(scope, ds_id)[source]

Delete a dataset

geonature.core.gn_meta.routes.uuid_report()[source]

get the UUID report of a dataset

geonature.core.gn_meta.routes.sensi_report(ds_id=None)[source]

get the UUID report of a dataset

geonature.core.gn_meta.routes.my_csv_resp(filename, data, columns, _header, separator=';')[source]
geonature.core.gn_meta.routes.datasetHandler(dataset, data)[source]
geonature.core.gn_meta.routes.create_dataset()[source]

Post one Dataset data .. :quickref: Metadata;

geonature.core.gn_meta.routes.update_dataset(id_dataset, scope)[source]

Post one Dataset data for update dataset .. :quickref: Metadata;

geonature.core.gn_meta.routes.get_export_pdf_dataset(id_dataset, scope)[source]

Get a PDF export of one dataset

geonature.core.gn_meta.routes.get_acquisition_frameworks()[source]

Get a simple list of AF without any nested relationships Use for AF select in form Get the GeoNature CRUVED

geonature.core.gn_meta.routes.get_acquisition_frameworks_list(scope)[source]

Get all AF with their datasets Use in metadata module for list of AF and DS Add the CRUVED permission for each row (Dataset and AD)

DEPRECATED use get_acquisition_frameworks instead

Qparam list excluded_fields:

fields excluded from serialization

Qparam boolean nested:

Default False - serialized relationships. If false: remove add all relationships in excluded_fields

geonature.core.gn_meta.routes.get_export_pdf_acquisition_frameworks(id_acquisition_framework)[source]

Get a PDF export of one acquisition

geonature.core.gn_meta.routes.get_acquisition_framework(scope, id_acquisition_framework)[source]

Get one AF with nomenclatures .. :quickref: Metadata;

Paramètres:
  • id_acquisition_framework – the id_acquisition_framework

  • type – int

Renvoie:

dict<TAcquisitionFramework>

geonature.core.gn_meta.routes.delete_acquisition_framework(scope, af_id)[source]

Delete an acquisition framework .. :quickref: Metadata;

geonature.core.gn_meta.routes.acquisitionFrameworkHandler(request, *, acquisition_framework)[source]
geonature.core.gn_meta.routes.create_acquisition_framework()[source]

Post one AcquisitionFramework data .. :quickref: Metadata;

geonature.core.gn_meta.routes.updateAcquisitionFramework(id_acquisition_framework, scope)[source]

Post one AcquisitionFramework data for update acquisition_framework .. :quickref: Metadata;

geonature.core.gn_meta.routes.get_acquisition_framework_stats(id_acquisition_framework)[source]

Get stats from one AF .. :quickref: Metadata; :param id_acquisition_framework: the id_acquisition_framework :param type: int

geonature.core.gn_meta.routes.get_acquisition_framework_bbox(id_acquisition_framework)[source]

Get BBOX from one AF .. :quickref: Metadata; :param id_acquisition_framework: the id_acquisition_framework :param type: int

geonature.core.gn_meta.routes.publish_acquisition_framework_mail(af)[source]

Method for sending a mail during the publication process

geonature.core.gn_meta.routes.publish_acquisition_framework(af_id)[source]

Publish an acquisition framework .. :quickref: Metadata;

geonature.core.gn_meta.routes.mtd_sync(id_role, id_af)[source]

 Triggers : - global sync for instance - a sync for a given user only (if id_role is provided) - a sync for a given AF (Acquisition Framework) only (if id_af is provided). NOTE: the AF should in this case already exist in the database, and only datasets associated to this AF will be retrieved

NOTE: if both id_role and id_af are provided, only the datasets possibly associated to both the AF and the user will be retrieved.