def send451(self): c.site = DefaultSR() return pages.InterstitialPage( _("unavailable"), content=pages.LegalBlockInterstitial( message=request.GET.get("legal_info"), ), ).render()
def send403(self): c.site = DefaultSR() if 'usable_error_content' in request.environ: return request.environ['usable_error_content'] else: res = pages.RedditError( title=_("forbidden (%(domain)s)") % dict(domain=g.domain), message=_("you are not allowed to do that"), explanation=request.GET.get('explanation')) return res.render()
def send403(self): c.response.status_code = 403 c.site = DefaultSR() if 'usable_error_content' in request.environ: return request.environ['usable_error_content'] else: res = pages.RedditError( title=_("forbidden (%(domain)s)") % dict(domain=g.domain), message=_("you are not allowed to do that")) return res.render()
def send403(self): c.response.status_code = 403 c.site = DefaultSR() res = pages.RedditError( _("forbidden (%(domain)s)") % dict(domain=g.domain)) return res.render()