pypicloud.views package

Module contents

Views

pypicloud.views.format_exception(context, request)[source]

Catch all app exceptions and render them nicely

This will keep the status code, but will always return parseable json

Returns:
error : str

Identifying error key

message : str

Human-readable error message

stacktrace : str, optional

If pyramid.debug = true, also return the stacktrace to the client

pypicloud.views.get_index(request)[source]

Render a home screen

pypicloud.views.health_endpoint(request)[source]

Simple health endpoint