weaver.tweens

Module Contents

weaver.tweens.ViewHandler[source]
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: weaver.typedefs.PyramidRequest, handler: ViewHandler) weaver.typedefs.AnyViewResponse[source]

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

weaver.tweens.ows_response_tween_factory_excview(handler: ViewHandler, registry: pyramid.registry.Registry) ViewHandler[source]

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

weaver.tweens.ows_response_tween_factory_ingress(handler: ViewHandler, registry: pyramid.registry.Registry) ViewHandler[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: pyramid.config.Configurator) None[source]