intranet.views.exceptionviews

Functions

handle_forbidden_for_homepage(→ RenderData | Response)

Usually, the forbidden view offers no way to log in, as we usually

Module Contents

intranet.views.exceptionviews.handle_forbidden_for_homepage(self: webob.exc.HTTPForbidden, request: onegov.town6.request.TownRequest) RenderData | Response[source]

Usually, the forbidden view offers no way to log in, as we usually do not need that feature (exception views should be simple).

For the intranet though, we make an exception for requests hitting the front-page directly.

This is not strictly correct as far as HTTP is concerned.