geonature.core.gn_meta.schemas

Contenu

geonature.core.gn_meta.schemas#

Classes#

DatasetActorSchema

DatasetSchema

This mixin add a cruved field which serialize to a dict "{action: boolean}".

BibliographicReferenceSchema

AcquisitionFrameworkActorSchema

AcquisitionFrameworkSchema

This mixin add a cruved field which serialize to a dict "{action: boolean}".

Module Contents#

class geonature.core.gn_meta.schemas.DatasetActorSchema[source]#

Bases: utils_flask_sqla.schema.SmartRelationshipsMixin, geonature.utils.env.MA.SQLAlchemyAutoSchema

class Meta[source]#
model[source]#
load_instance = True[source]#
include_fk = True[source]#
role[source]#
nomenclature_actor_role[source]#
organism[source]#
make_dataset_actor(data, **kwargs)[source]#
class geonature.core.gn_meta.schemas.DatasetSchema[source]#

Bases: geonature.utils.schema.CruvedSchemaMixin, utils_flask_sqla.schema.SmartRelationshipsMixin, geonature.utils.env.MA.SQLAlchemyAutoSchema

This mixin add a cruved field which serialize to a dict « {action: boolean} ».

example: {« C »: False, « R »: True, « U »: True, « V »: False, « E »: True, « D »: False}

The schema must have a __module_code__ property (and optionally a __object_code__property) to indicate from which permissions must be verified. The model must have an has_instance_permission method which take the scope and retrurn a boolean. The cruved field is excluded by default and may be added to serialization with only=[« +cruved »].

class Meta[source]#
model[source]#
load_instance = True[source]#
include_fk = True[source]#
__module_code__ = 'METADATA'[source]#
meta_create_date[source]#
meta_update_date[source]#
cor_dataset_actor[source]#
modules[source]#
creator[source]#
nomenclature_data_type[source]#
nomenclature_dataset_objectif[source]#
nomenclature_collecting_method[source]#
nomenclature_data_origin[source]#
nomenclature_source_status[source]#
nomenclature_resource_type[source]#
cor_territories[source]#
acquisition_framework[source]#
sources[source]#
module_input(item, original, many, **kwargs)[source]#
mobile_app_compat(data, original, many, **kwargs)[source]#
class geonature.core.gn_meta.schemas.BibliographicReferenceSchema[source]#

Bases: utils_flask_sqla.schema.SmartRelationshipsMixin, geonature.utils.env.MA.SQLAlchemyAutoSchema

class Meta[source]#
model[source]#
load_instance = True[source]#
include_fk = True[source]#
acquisition_framework[source]#
make_biblio_ref(data, **kwargs)[source]#
class geonature.core.gn_meta.schemas.AcquisitionFrameworkActorSchema[source]#

Bases: utils_flask_sqla.schema.SmartRelationshipsMixin, geonature.utils.env.MA.SQLAlchemyAutoSchema

class Meta[source]#
model[source]#
load_instance = True[source]#
include_fk = True[source]#
role[source]#
nomenclature_actor_role[source]#
organism[source]#
cor_volets_sinp[source]#
make_af_actor(data, **kwargs)[source]#
class geonature.core.gn_meta.schemas.AcquisitionFrameworkSchema[source]#

Bases: geonature.utils.schema.CruvedSchemaMixin, utils_flask_sqla.schema.SmartRelationshipsMixin, geonature.utils.env.MA.SQLAlchemyAutoSchema

This mixin add a cruved field which serialize to a dict « {action: boolean} ».

example: {« C »: False, « R »: True, « U »: True, « V »: False, « E »: True, « D »: False}

The schema must have a __module_code__ property (and optionally a __object_code__property) to indicate from which permissions must be verified. The model must have an has_instance_permission method which take the scope and retrurn a boolean. The cruved field is excluded by default and may be added to serialization with only=[« +cruved »].

class Meta[source]#
model[source]#
load_instance = True[source]#
include_fk = True[source]#
__module_code__ = 'METADATA'[source]#
meta_create_date[source]#
meta_update_date[source]#
t_datasets[source]#
datasets[source]#
bibliographical_references[source]#
cor_af_actor[source]#
cor_volets_sinp[source]#
cor_objectifs[source]#
cor_territories[source]#
nomenclature_territorial_level[source]#
nomenclature_financing_type[source]#
creator[source]#