Expand description
Configuration data that origins from environment variables.
Unlike the configuration data in LIB_CFG
which is sourced only once when
Tp-Note is launched, the SETTINGS
object may be sourced more often in
order to follow changes in the related environment variables.
Constants§
- ENV_
VAR_ TPNOTE_ EXTENSION_ DEFAULT - The name of the environment variable which can be optionally set to
overwrite the
filename.extension_default
configuration file setting. - ENV_
VAR_ TPNOTE_ LANG - Name of the environment variable, that can be optionally
used to overwrite the user’s default language setting, which is
accessible as
{{ lang }}
template variable and used in various templates. - ENV_
VAR_ TPNOTE_ LANG_ DETECTION - Name of the environment variable, that can be optionally
used to overwrite the user’s
tmpl.filter.get_lang.language_candidates
andtmpl.filter.map_lang
configuration file setting. - ENV_
VAR_ TPNOTE_ LANG_ PLUS_ ALL - A pseudo language tag for the
get_lang_filter
. When placed in theENV_VAR_TPNOTE_LANG
list, all available languages are selected. - ENV_
VAR_ TPNOTE_ SCHEME - The name of the environment variable which can be optionally set to
overwrite the
scheme_default
configuration file setting. - ENV_
VAR_ TPNOTE_ USER - Name of the environment variable, that can be optionally
used to overwrite the user’s login name. The result is accessible as
{{ username }}
template variable and used in various templates.
Functions§
- set_
test_ default_ settings - Like
Settings::update
, withscheme_source = SchemeSource::Force("default")
andforce_lang = None
. This is used in doctests only.