weaver.status
¶
Module Contents¶
-
weaver.status.
map_status
(wps_status, compliant=STATUS_COMPLIANT_OGC) → AnyStr[source]¶ Maps WPS statuses (weaver.status, OWSLib or PyWPS) to OWSLib/PyWPS compatible values. For each compliant combination, unsupported statuses are changed to corresponding ones (with closest logical match). Statuses are returned with weaver.status.JOB_STATUS_VALUES format (lowercase and not preceded by ‘Process’).
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.