erecord_cmn.configs package¶
Submodules¶
erecord_cmn.configs.config module¶
erecord_cmn.configs.config
Contains the configuration : paths, constants…
-
erecord_cmn.configs.config.
ACTIVITY_LIFETIME
= 31¶ Age criterion to delete VpzAct into database and associated folders (see delete_if_old method, and also delete_too_old_activity admin command)
unit : number of days
-
erecord_cmn.configs.config.
ACTIVITY_PERSISTENCE
= False¶ ACTIVITY_PERSISTENCE value False or True
ACTIVITY_PERSISTENCE=True : the activities are kept into the database.
ACTIVITY_PERSISTENCE=False : the activities are deleted after restitution.
An activity is a VpzAct and its ‘dependencies/tree’ (VpzInput, VpzOutput…)
-
erecord_cmn.configs.config.
CLOSEDMEDIA_DESTINATION_HOME
= '/opt/erecord/factory/closedmedia'¶ Closed media files home directory path, where access is controlled (where a subdirectory for each project)
-
erecord_cmn.configs.config.
DB_NAME_ACS
= 'default'¶ Database name of database associated with erecord_acs (access control management)
-
erecord_cmn.configs.config.
DB_NAME_DB
= 'default'¶ Database name of database associated with erecord_db (models repositories and their tree : vle packages, vpz files)
-
erecord_cmn.configs.config.
DB_NAME_DEFAULT
= 'default'¶ Database name of default database (admin…)
-
erecord_cmn.configs.config.
DB_NAME_SLM
= 'default'¶ Database name of database associated with erecord_slm (downloadable and uploaded files management)
-
erecord_cmn.configs.config.
DB_NAME_VPZ
= 'default'¶ Database name of database associated with erecord_vpz (vpz manipulations : inputs, outputs…)
-
erecord_cmn.configs.config.
DB_PATH_ACS
= '/opt/erecord/databases/erecord_default.sqlite3'¶ Database file path of DB_NAME_ACS database
-
erecord_cmn.configs.config.
DB_PATH_DB
= '/opt/erecord/databases/erecord_default.sqlite3'¶ Database file path of DB_NAME_DB database
-
erecord_cmn.configs.config.
DB_PATH_DEFAULT
= '/opt/erecord/databases/erecord_default.sqlite3'¶ Database file path of DB_NAME_DEFAULT database
-
erecord_cmn.configs.config.
DB_PATH_SLM
= '/opt/erecord/databases/erecord_default.sqlite3'¶ Database file path of DB_NAME_SLM database
-
erecord_cmn.configs.config.
DB_PATH_VPZ
= '/opt/erecord/databases/erecord_default.sqlite3'¶ Database file path of DB_NAME_VPZ database
-
erecord_cmn.configs.config.
DOWNLOADS_HOME
= 'slm'¶ closed media structure for downloadable and uploaded files.
DOWNLOADS_HOME is a ‘root’ dedicated to erecord_slm (the application managing downloadable and uploaded files), divided by applications (see erecord_slm).
DOWNLOADS_HOME path is relative to CLOSEDMEDIA_ROOT.
-
erecord_cmn.configs.config.
DOWNLOADS_HOME_APP_VPZ
= 'slm/erecord_vpz'¶ closed media structure for downloadable and uploaded files about erecord_vpz application.
DOWNLOADS_HOME_APP_VPZ is relative to CLOSEDMEDIA_ROOT (like DOWNLOADS_HOME).
-
erecord_cmn.configs.config.
DOWNLOAD_LIFETIME
= 21¶ Age criterion to delete a folder into download space into factory (see delete_if_old method, and also delete_too_old_downloadvpzdocument admin command)
unit : number of days
-
erecord_cmn.configs.config.
INSTALL_HOME
= '/opt/erecord/factory/install'¶ install path
-
erecord_cmn.configs.config.
IN_PRODUCTION
= True¶ IN_PRODUCTION value False or True
In case of IN_PRODUCTION, no console destination for logging information …
-
erecord_cmn.configs.config.
LOGGING_FILE
= '/opt/erecord/factory/log/erecord.log'¶ File destination of logging information
Value None for no file destination for logging information
-
erecord_cmn.configs.config.
MEDIA_DESTINATION_HOME
= '/opt/erecord/factory/media'¶ Media files home directory path
-
erecord_cmn.configs.config.
ONLINEDOC_FAQ_URL
= 'http://erecord.toulouse.inra.fr/erecord/html/faqs/index.html'¶ online documentation URL (erecord faq)
-
erecord_cmn.configs.config.
ONLINEDOC_URL
= 'http://erecord.toulouse.inra.fr/docs.html'¶ online documentation URL (erecord web site)
-
erecord_cmn.configs.config.
ONLINEDOC_USECASE_URL
= 'http://erecord.toulouse.inra.fr/erecord/html/using/examples/index.html'¶ online documentation URL (erecord use case)
-
erecord_cmn.configs.config.
ONLINEDOC_WEBAPI_URL
= 'http://erecord.toulouse.inra.fr/erecord/html/webapi/index.html'¶ online documentation URL (erecord web api)
-
erecord_cmn.configs.config.
OPT_LOCATION
= True¶ OPT_LOCATION value False or True
True if erecord is located under ‘/opt’, and else relative location
-
erecord_cmn.configs.config.
PACKAGE_HOME
= '/opt/erecord/erecord'¶ erecord package home path
-
erecord_cmn.configs.config.
PROJECT_HOME
= '/opt/erecord'¶ erecord project home path
-
erecord_cmn.configs.config.
REPOSITORIES_HOME
= '/opt/erecord/repositories'¶ REPOSITORIES_HOME
-
erecord_cmn.configs.config.
REQUESTS_HOME_APP_VPZ
= '/opt/erecord/factory/run/erecord_vpz/requests'¶ requests into run workspace of erecord_vpz app
-
erecord_cmn.configs.config.
RUN_HOME
= '/opt/erecord/factory/run'¶ run workspace path, workspace divided by applications
-
erecord_cmn.configs.config.
RUN_HOME_APP_VPZ
= '/opt/erecord/factory/run/erecord_vpz'¶ run workspace of erecord_vpz app
-
erecord_cmn.configs.config.
STATIC_APP_CMN
= '/opt/erecord/erecord/apps/erecord_cmn/static'¶ Static files of erecord_cmn app
-
erecord_cmn.configs.config.
STATIC_DESTINATION_HOME
= '/opt/erecord/factory/static'¶ Static files home directory path (where a subdirectory for each project)
-
erecord_cmn.configs.config.
TEMPLATE_APP_CMN
= '/opt/erecord/erecord/apps/erecord_cmn/templates'¶ templates of erecord_cmn app
-
erecord_cmn.configs.config.
TEMPLATE_APP_DB
= '/opt/erecord/erecord/apps/erecord_db/templates'¶ templates of erecord_db app
-
erecord_cmn.configs.config.
TEMPLATE_APP_SLM
= '/opt/erecord/erecord/apps/erecord_slm/templates'¶ templates of erecord_slm app
-
erecord_cmn.configs.config.
TEMPLATE_APP_VPZ
= '/opt/erecord/erecord/apps/erecord_vpz/templates'¶ templates of erecord_vpz app
-
erecord_cmn.configs.config.
TOKEN_LIFETIME
= datetime.timedelta(0, 36000)¶ Duration before a token expiration. TOKEN_LIFETIME is an instance of Python’s datetime.timedelta. Examples : datetime.timedelta(seconds=300), datetime.timedelta(days=5).
-
erecord_cmn.configs.config.
UPLOAD_LIFETIME
= 21¶ Age criterion to delete a folder into upload space into factory (see delete_if_old method, and also delete_too_old_uploadvpzdocument admin command)
unit : number of days
nb : upload space is unused for the moment
-
erecord_cmn.configs.config.
factory_path
= '/opt/erecord/factory'¶ factory path
Module contents¶
erecord_cmn.configs
This package is part of erecord - Record platform web development
copyright: | Copyright (C) 2014-2015 INRA http://www.inra.fr. |
---|---|
license: | GPLv3, see License for more details. |
authors: | see Authors. |
Configuration of the erecord package
See erecord