geonature.core.gn_meta.routes
Routes for gn_meta
Module Contents
Functions
Get datasets list |
|
|
|
|
Get one dataset |
|
Delete a dataset |
get the UUID report of a dataset |
|
|
get the UUID report of a dataset |
|
|
|
|
Post one Dataset data |
|
|
Post one Dataset data for update dataset |
|
Get a PDF export of one dataset |
Get a simple list of AF without any nested relationships |
|
Get all AF with their datasets |
|
Get a PDF export of one acquisition |
|
|
Get one AF with nomenclatures |
|
Delete an acquisition framework |
|
|
Post one AcquisitionFramework data |
|
|
Post one AcquisitionFramework data for update acquisition_framework |
|
Get stats from one AF |
|
Get BBOX from one AF |
Method for sending a mail during the publication process |
|
Publish an acquisition framework |
|
|
Attributes
- 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_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.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.