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

« back to all changes in this revision

Viewing changes to ivle/dispatch/__init__.py

Also capture the view object creation in the new framework's exception handler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
        # (The latter two seem to be built-in, and we don't want them).
153
153
        kwargs = matchdict.copy()
154
154
        del kwargs['view']
155
 
        # Instantiate the view, which should be a BaseView class
156
 
        view = viewcls(req, **kwargs)
157
 
        # Render the output
158
155
        try:
 
156
            # Instantiate the view, which should be a BaseView class
 
157
            view = viewcls(req, **kwargs)
 
158
            # Render the output
159
159
            view.render(req)
160
160
        except HTTPError, e:
161
161
            # A view explicitly raised an HTTP error. Respect it.