weaver.config

Module Contents

weaver.config.LOGGER[source]
weaver.config.WEAVER_CONFIGURATION_DEFAULT = DEFAULT[source]
weaver.config.WEAVER_CONFIGURATION_ADES = ADES[source]
weaver.config.WEAVER_CONFIGURATION_EMS = EMS[source]
weaver.config.WEAVER_CONFIGURATIONS[source]
weaver.config.WEAVER_DEFAULT_INI_CONFIG = weaver.ini[source]
weaver.config.WEAVER_DEFAULT_DATA_SOURCES_CONFIG = data_sources.json[source]
weaver.config.WEAVER_DEFAULT_WPS_PROCESSES_CONFIG = wps_processes.yml[source]
weaver.config.WEAVER_DEFAULT_CONFIGS[source]
weaver.config.get_weaver_configuration(container) → AnyStr[source]

Obtains the defined operation configuration mode.

Returns:one value amongst weaver.config.WEAVER_CONFIGURATIONS.
weaver.config.get_weaver_config_file(file_path, default_config_file) → AnyStr[source]

Validates that the specified configuration file can be found, or falls back to the default one.

Handles ‘relative’ paths for settings in WEAVER_DEFAULT_INI_CONFIG referring to other configuration files. Default file must be one of WEAVER_DEFAULT_CONFIGS. If the default file cannot be found, it is auto-generated from the corresponding example file.

Parameters:
  • file_path – path to a configuration file (can be relative if resolvable or matching a default file name)
  • default_config_file – one of WEAVER_DEFAULT_CONFIGS.
weaver.config.includeme(config)[source]