weaver.status
¶
Module Contents¶
-
weaver.status.
map_status
(wps_status: AnyStatusType, compliant: str = STATUS_COMPLIANT_OGC) → str[source]¶ Maps WPS execution statuses to between compatible values of different implementations.
Mapping is supported for values from
weaver.status
,OWSLib
,pywps
as well as some specific one-of values of custom implementations.For each compliant combination, unsupported statuses are changed to corresponding ones (with closest logical match). Statuses are returned following
weaver.status.JOB_STATUS_VALUES
format. Specifically, this ensures statues are lowercase and not prefixed byProcess
(as in XML response of OWS WPS likeProcessSucceeded
for example).- Parameters
wps_status -- One of
weaver.status.JOB_STATUS_VALUES
to map to compliant standard or PyWPS int status.compliant -- One of
STATUS_COMPLIANT_[...]
values.
- Returns
mapped status complying to the requested compliant category, or
STATUS_UNKNOWN
if no match found.