Example #1
0
 def send451(self):
     c.site = DefaultSR()
     return pages.InterstitialPage(
         _("unavailable"),
         content=pages.LegalBlockInterstitial(
             message=request.GET.get("legal_info"), ),
     ).render()
Example #2
0
 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()
Example #3
0
 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()
Example #4
0
 def send403(self):
     c.response.status_code = 403
     c.site = DefaultSR()
     res = pages.RedditError(
         _("forbidden (%(domain)s)") % dict(domain=g.domain))
     return res.render()