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

« back to all changes in this revision

Viewing changes to ivle/dispatch/__init__.py

  • Committer: William Grant
  • Date: 2009-07-06 07:58:23 UTC
  • mto: (1294.4.2 ui-the-third)
  • mto: This revision was merged to the branch mainline in revision 1353.
  • Revision ID: grantw@unimelb.edu.au-20090706075823-ibj9hob3fx39t71x
Actually return a 404 if routing fails.

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
            req.store.commit()
156
156
            return req.OK
157
157
    except RoutingError, e:
 
158
        req.status = 404
 
159
 
158
160
        if req.user.admin:
159
161
            XHTMLErrorView(req, NotFound('Not found: ' +
160
162
                                         str(e.args))).render(req)