diff --git a/tailbone/views/core.py b/tailbone/views/core.py index 1a90b841..7e7a7cee 100644 --- a/tailbone/views/core.py +++ b/tailbone/views/core.py @@ -72,6 +72,12 @@ class View(object): """ return getattr(self.request, 'rattail_config', None) + def forbidden(self): + """ + Convenience method, to raise a HTTP 403 Forbidden exception. + """ + return httpexceptions.HTTPForbidden() + def notfound(self): return httpexceptions.HTTPNotFound()