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

« back to all changes in this revision

Viewing changes to ivle/webapp/userservice/__init__.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:
140
140
            func = actions_map[self.path]
141
141
        except KeyError:
142
142
            raise NotFound()
143
 
        try:
144
 
            func(req, fields)
145
 
        except BadRequest, e:
146
 
            req.headers_out['X-IVLE-Action-Error'] = e.message
147
 
            raise
 
143
        func(req, fields)
148
144
 
149
145
    @property
150
146
    def path(self):