geonature.utils.config_schema

Description des options de configuration

Attributes

Classes

Module Contents

class geonature.utils.config_schema.EmailStrOrListOfEmailStrField[source]

Bases: marshmallow.fields.Field

_deserialize(value, attr, data, **kwargs)[source]
_check_email(value)[source]
class geonature.utils.config_schema.RightsSchemaConf[source]

Bases: marshmallow.Schema

NOTHING[source]
MY_DATA[source]
MY_ORGANISM_DATA[source]
ALL_DATA[source]
class geonature.utils.config_schema.MailConfig[source]

Bases: marshmallow.Schema

MAIL_SERVER[source]
MAIL_PORT[source]
MAIL_USE_TLS[source]
MAIL_USE_SSL[source]
MAIL_USERNAME[source]
MAIL_PASSWORD[source]
MAIL_DEFAULT_SENDER[source]
MAIL_MAX_EMAILS[source]
MAIL_SUPPRESS_SEND[source]
MAIL_ASCII_ATTACHMENTS[source]
ERROR_MAIL_TO[source]
class geonature.utils.config_schema.CeleryConfig[source]

Bases: marshmallow.Schema

broker_url[source]
result_backend[source]
enable_utc[source]
timezone[source]
class geonature.utils.config_schema.AccountManagement[source]

Bases: marshmallow.Schema

ENABLE_SIGN_UP[source]
ENABLE_USER_MANAGEMENT[source]
AUTO_ACCOUNT_CREATION[source]
AUTO_DATASET_CREATION[source]
VALIDATOR_EMAIL[source]
ACCOUNT_FORM[source]
ADDON_USER_EMAIL[source]
DATASET_MODULES_ASSOCIATION[source]
class geonature.utils.config_schema.UsersHubConfig[source]

Bases: marshmallow.Schema

ADMIN_APPLICATION_LOGIN[source]
ADMIN_APPLICATION_PASSWORD[source]
URL_USERSHUB[source]
class geonature.utils.config_schema.ServerConfig[source]

Bases: marshmallow.Schema

LOG_LEVEL[source]
class geonature.utils.config_schema.MediasConfig[source]

Bases: marshmallow.Schema

MEDIAS_SIZE_MAX[source]
THUMBNAIL_SIZES[source]
class geonature.utils.config_schema.AlembicConfig[source]

Bases: marshmallow.Schema

VERSION_LOCATIONS[source]
class geonature.utils.config_schema.AdditionalFields[source]

Bases: marshmallow.Schema

IMPLEMENTED_MODULES[source]
IMPLEMENTED_OBJECTS[source]
class geonature.utils.config_schema.HomeConfig[source]

Bases: marshmallow.Schema

TITLE[source]
INTRODUCTION[source]
FOOTER[source]
DISPLAY_LATEST_DISCUSSIONS[source]
class geonature.utils.config_schema.MetadataConfig[source]

Bases: marshmallow.Schema

NB_AF_DISPLAYED[source]
ENABLE_CLOSE_AF[source]
CLOSED_AF_TITLE[source]
AF_PDF_TITLE[source]
DS_PDF_TITLE[source]
MAIL_SUBJECT_AF_CLOSED_BASE[source]
MAIL_CONTENT_AF_CLOSED_ADDITION[source]
MAIL_CONTENT_AF_CLOSED_PDF[source]
MAIL_CONTENT_AF_CLOSED_URL[source]
MAIL_CONTENT_AF_CLOSED_GREETINGS[source]
CLOSED_MODAL_LABEL[source]
CLOSED_MODAL_CONTENT[source]
CD_NOMENCLATURE_ROLE_TYPE_DS[source]
CD_NOMENCLATURE_ROLE_TYPE_AF[source]
METADATA_AREA_FILTERS[source]
class geonature.utils.config_schema.AuthenticationConfig[source]

Bases: marshmallow.Schema

PROVIDERS[source]
DEFAULT_RECONCILIATION_GROUP_ID[source]
validate_provider(data, **kwargs)[source]
class geonature.utils.config_schema.AuthenticationFrontendConfig[source]

Bases: AuthenticationConfig

post_load(data, **kwargs)[source]
class geonature.utils.config_schema.GnPySchemaConf[source]

Bases: marshmallow.Schema

SQLALCHEMY_DATABASE_URI[source]
SQLALCHEMY_TRACK_MODIFICATIONS[source]
SESSION_TYPE[source]
SECRET_KEY[source]
COOKIE_EXPIRATION[source]
COOKIE_AUTORENEW[source]
TRAP_ALL_EXCEPTIONS[source]
SENTRY_DSN[source]
ROOT_PATH[source]
STATIC_FOLDER[source]
CUSTOM_STATIC_FOLDER[source]
MEDIA_FOLDER[source]
MAIL_ON_ERROR[source]
MAIL_CONFIG[source]
CELERY[source]
METADATA[source]
ADMIN_APPLICATION_LOGIN[source]
ACCOUNT_MANAGEMENT[source]
BAD_LOGIN_STATUS_CODE[source]
USERSHUB[source]
SERVER[source]
MEDIAS[source]
ALEMBIC[source]
AUTHENTICATION[source]
folders(data, **kwargs)[source]
unwrap_usershub(data, **kwargs)[source]

On met la section [USERSHUB] à la racine de la conf pour compatibilité et simplicité ave le sous-module d’authentif

validate_enable_usershub_and_mail(data, **kwargs)[source]
class geonature.utils.config_schema.GnFrontEndConf[source]

Bases: marshmallow.Schema

PROD_MOD[source]
DISPLAY_STAT_BLOC[source]
STAT_BLOC_TTL[source]
DISPLAY_MAP_LAST_OBS[source]
MULTILINGUAL[source]
ENABLE_PROFILES[source]
DISPLAY_EMAIL_INFO_OBS[source]
DISPLAY_EMAIL_DISPLAY_INFO[source]
class geonature.utils.config_schema.ExportObservationSchema[source]

Bases: marshmallow.Schema

label[source]
view_name[source]
geojson_4326_field[source]
geojson_local_field[source]
class geonature.utils.config_schema.TaxonSheet[source]

Bases: marshmallow.Schema

ENABLE_TAB_PROFILE[source]
ENABLE_TAB_TAXONOMY[source]
class geonature.utils.config_schema.Synthese[source]

Bases: marshmallow.Schema

AREA_FILTERS[source]
TAXON_RESULT_NUMBER[source]
DISPLAY_TAXON_TREE[source]
SEARCH_OBSERVER_WITH_LIST[source]
ID_SEARCH_OBSERVER_LIST[source]
STATUS_FILTERS[source]
RED_LISTS_FILTERS[source]
DEFAULT_FILTERS[source]
LIST_COLUMNS_FRONTEND[source]
ADDITIONAL_COLUMNS_FRONTEND[source]
EXPORT_COLUMNS[source]
EXPORT_OBSERVATIONS_CUSTOM_VIEWS[source]
EXPORT_ID_SYNTHESE_COL[source]
EXPORT_ID_DATASET_COL[source]
EXPORT_ID_DIGITISER_COL[source]
EXPORT_OBSERVERS_COL[source]
EXPORT_GEOJSON_4326_COL[source]
EXPORT_GEOJSON_LOCAL_COL[source]
EXPORT_METADATA_ID_DATASET_COL[source]
EXPORT_METADATA_ACTOR_COL[source]
EXPORT_FORMAT[source]
NB_MAX_OBS_EXPORT[source]
ID_ATTRIBUT_TAXHUB[source]
DISPLAY_EMAIL[source]
EXCLUDED_COLUMNS[source]
NB_MAX_OBS_MAP[source]
ENABLE_LEAFLET_CLUSTER[source]
NB_LAST_OBS[source]
DISCUSSION_MAX_LENGTH[source]
DISCUSSION_MODULES[source]
ALERT_MODULES[source]
PIN_MODULES[source]
AREA_AGGREGATION_ENABLED[source]
AREA_AGGREGATION_TYPE[source]
AREA_AGGREGATION_BY_DEFAULT[source]
AREA_AGGREGATION_LEGEND_CLASSES[source]
BLUR_SENSITIVE_OBSERVATIONS[source]
ENABLE_TAXON_SHEETS[source]
TAXON_SHEET[source]
warn_deprecated(data, **kwargs)[source]
geonature.utils.config_schema.BASEMAP[source]
class geonature.utils.config_schema.MapConfig[source]

Bases: marshmallow.Schema

BASEMAP[source]
CENTER[source]
ZOOM_LEVEL[source]
ZOOM_LEVEL_RELEVE[source]
GEOLOCATION[source]
ZOOM_ON_CLICK[source]
OSM_RESTRICT_COUNTRY_CODES[source]
REF_LAYERS[source]
REF_LAYERS_LEGEND[source]
class geonature.utils.config_schema.GnGeneralSchemaConf[source]

Bases: marshmallow.Schema

appName[source]
GEONATURE_VERSION[source]
DEFAULT_LANGUAGE[source]
PASS_METHOD[source]
DEBUG[source]
URL_APPLICATION[source]
API_ENDPOINT[source]
API_TAXHUB[source]
CODE_APPLICATION[source]
DISABLED_MODULES[source]
RIGHTS[source]
FRONTEND[source]
SYNTHESE[source]
IMPORT[source]
MAPCONFIG[source]
ENABLE_NOMENCLATURE_TAXONOMIC_FILTERS[source]
URL_USERSHUB[source]
ACCOUNT_MANAGEMENT[source]
MEDIAS[source]
STATIC_URL[source]
MEDIA_URL[source]
METADATA[source]
NB_MAX_DATA_SENSITIVITY_REPORT[source]
ADDITIONAL_FIELDS[source]
PUBLIC_ACCESS_USERNAME[source]
TAXHUB[source]
HOME[source]
NOTIFICATIONS_ENABLED[source]
PROFILES_REFRESH_CRONTAB[source]
MEDIA_CLEAN_CRONTAB[source]
AUTHENTICATION[source]
validate_account_autovalidation(data, **kwargs)[source]
_pre_load(data, **kwargs)[source]
insert_module_config(data, **kwargs)[source]
profile_display_coherence(data, **kwargs)[source]