weaver.wps_restapi.providers.utils
¶
Module Contents¶
-
weaver.wps_restapi.providers.utils.
get_provider_services
(container: weaver.typedefs.AnySettingsContainer, check: bool = True, ignore: bool = True) → List[weaver.datatype.Service][source]¶ Obtain the list of remote provider services.
- Parameters
container – definition to retrieve settings and database connection.
check – request that all provider services are remotely accessible to fetch metadata from them.
ignore – given that any provider service is not accessible, ignore it or raise the error.
-
weaver.wps_restapi.providers.utils.
forbid_local_only
(container: weaver.typedefs.AnySettingsContainer) → Any[source]¶ Raises an HTTP exception forbidding to resume the operation if invalid configuration is detected.