geonature.core.gn_meta.models.datasets

Module Contents

Classes

TDatasets

The base class of the SQLAlchemy.Model declarative model class.

class geonature.core.gn_meta.models.datasets.TDatasets[source]

Bases: geonature.core.gn_meta.models.commons.db.Model

The base class of the SQLAlchemy.Model declarative model class.

To define models, subclass db.Model, not this. To customize db.Model, subclass this and pass it as model_class to SQLAlchemy. To customize db.Model at the metaclass level, pass an already created declarative model class as model_class.

__tablename__ = 't_datasets'[source]
__table_args__[source]
id_dataset[source]
unique_dataset_id[source]
id_acquisition_framework[source]
acquisition_framework[source]
dataset_name[source]
dataset_shortname[source]
dataset_desc[source]
id_nomenclature_data_type[source]
keywords[source]
marine_domain[source]
terrestrial_domain[source]
id_nomenclature_dataset_objectif[source]
bbox_west[source]
bbox_east[source]
bbox_south[source]
bbox_north[source]
id_nomenclature_collecting_method[source]
id_nomenclature_data_origin[source]
id_nomenclature_source_status[source]
id_nomenclature_resource_type[source]
meta_create_date[source]
meta_update_date[source]
active[source]
validable[source]
id_digitizer[source]
digitizer[source]
creator[source]
id_taxa_list[source]
modules[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]
cor_dataset_actor[source]
additional_fields[source]
user_actors()[source]
organism_actors()[source]
is_deletable()[source]
has_instance_permission(scope, _through_af=True)[source]

_through_af prevent infinite recursion

__str__()[source]

Return str(self).

static get_id(uuid_dataset)[source]
static get_uuid(id_dataset)[source]
classmethod _get_read_scope(user=None)[source]
classmethod _get_create_scope(module_code, user=None, object_code=None)[source]
classmethod filter_by_scope(scope, *, query, user=None)[source]
classmethod filter_by_params(params={}, *, _af_search=True, query=None)[source]
classmethod filter_by_readable(query, user=None)[source]

Return the datasets where the user has autorization via its CRUVED

classmethod filter_by_creatable(module_code, *, query, user=None, object_code=None)[source]

Return all dataset where user have read rights minus those who user to not have create rigth

classmethod filter_by_areas(areas, *, query)[source]