weaver.tweens

Module Contents

weaver.tweens.LOGGER[source]
weaver.tweens.OWS_TWEEN_HANDLED = OWS_TWEEN_HANDLED[source]
weaver.tweens.error_repr(http_err: Union[pyramid.httpexceptions.HTTPException, weaver.owsexceptions.OWSException, Exception])str[source]

Returns a cleaned up representation string of the HTTP error.

Similar and even extended details relative to the HTTP error message are added to facilitate later debugging.

weaver.tweens.ows_response_tween(request, handler)[source]

Tween that wraps any API request with appropriate dispatch of error conversion to handle formatting.

weaver.tweens.ows_response_tween_factory_excview(handler, registry)[source]

Tween factory which produces a tween which transforms common exceptions into OWS specific exceptions.

weaver.tweens.ows_response_tween_factory_ingress(handler, registry)[source]

Tween factory which produces a tween which transforms common exceptions into OWS specific exceptions.

weaver.tweens.OWS_RESPONSE_EXCVIEW[source]
weaver.tweens.OWS_RESPONSE_INGRESS[source]
weaver.tweens.includeme(config)[source]