org.views.exceptionviews

Functions

handle_forbidden(→ onegov.core.types.RenderData)

If a view is forbidden, the request is redirected to the login

handle_notfound(→ onegov.core.types.RenderData)

Module Contents

org.views.exceptionviews.handle_forbidden(self: webob.exc.HTTPForbidden, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.DefaultLayout | None = None) onegov.core.types.RenderData[source]

If a view is forbidden, the request is redirected to the login view. There, the user may login to the site and be redirected back to the originally forbidden view.

org.views.exceptionviews.handle_notfound(self: webob.exc.HTTPNotFound, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.DefaultLayout | None = None) onegov.core.types.RenderData[source]