geonature.core.sensitivity.models

Module Contents

Classes

SensitivityRule

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

CorSensitivityCriteria

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

Functions

before_insert_sensitivity_criteria(mapper, connection, ...)

Attributes

cor_sensitivity_area

cor_sensitivity_area_type

geonature.core.sensitivity.models.cor_sensitivity_area[source]
geonature.core.sensitivity.models.cor_sensitivity_area_type[source]
class geonature.core.sensitivity.models.SensitivityRule[source]

Bases: geonature.utils.env.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_sensitivity_rules'[source]
__table_args__[source]
id[source]
cd_nom[source]
nom_cite[source]
id_nomenclature_sensitivity[source]
nomenclature_sensitivity[source]
sensitivity_duration[source]
sensitivity_territory[source]
id_territory[source]
date_min[source]
date_max[source]
source[source]
active[source]
comments[source]
meta_create_date[source]
meta_update_date[source]
areas[source]
criterias[source]
class geonature.core.sensitivity.models.CorSensitivityCriteria(criteria=None, sensitivity_rule=None, nomenclature_type=None)[source]

Bases: geonature.utils.env.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__ = 'cor_sensitivity_criteria'[source]
__table_args__[source]
id_sensitivity_rule[source]
sensitivity_rule[source]
id_criteria[source]
criteria[source]
id_nomenclature_type[source]
nomenclature_type[source]
geonature.core.sensitivity.models.before_insert_sensitivity_criteria(mapper, connection, target)[source]