org.views.exceptionviews ======================== .. py:module:: org.views.exceptionviews Functions --------- .. autoapisummary:: org.views.exceptionviews.handle_forbidden org.views.exceptionviews.handle_notfound Module Contents --------------- .. py:function:: handle_forbidden(self: webob.exc.HTTPForbidden, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.DefaultLayout | None = None) -> onegov.core.types.RenderData 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. .. py:function:: handle_notfound(self: webob.exc.HTTPNotFound, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.DefaultLayout | None = None) -> onegov.core.types.RenderData