~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/base/xhtml.py

  • Committer: William Grant
  • Date: 2010-02-16 07:05:07 UTC
  • mto: This revision was merged to the branch mainline in revision 1674.
  • Revision ID: grantw@unimelb.edu.au-20100216070507-i7aasdv2iiuxs39w
Call the field X-IVLE-Error instead (to avoid potential conflicts with icky fileservice), and populate it in the root XHTMLErrorView.

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
    def populate(self, req, ctx):
246
246
        ctx['req'] = req
247
247
        ctx['exception'] = self.context
 
248
        req.headers_out['X-IVLE-Error'] = self.context.message
248
249
 
249
250
class XHTMLUnauthorizedView(XHTMLErrorView):
250
251
    template = 'xhtmlunauthorized.html'