pypicloud.views package

Module contents


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

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(*args, **kwargs)[source]

Render a home screen


Simple health endpoint