~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-02-27 03:55:15 UTC
  • Revision ID: grantw@unimelb.edu.au-20090227035515-u5nwfrbed8qu9sbl
Offerings now give 'view' only to user enrolled in them. 'edit' is granted
to their tutors and lecturers.

Worksheet(Exercise)s and their views now delegate to and use Offering's
permissions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
                return req.OK
129
129
            else:
130
130
                return e.code
131
 
        except mod_python.apache.SERVER_RETURN:
132
 
            # A mod_python-specific Apache error.
133
 
            # XXX: We need to raise these because req.throw_error() uses them.
134
 
            # Remove this after Google Code issue 117 is fixed.
135
 
            raise
136
131
        except Exception, e:
137
132
            # A non-HTTPError appeared. We have an unknown exception. Panic.
138
133
            handle_unknown_exception(req, *sys.exc_info())