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

« back to all changes in this revision

Viewing changes to ivle/dispatch/__init__.py

  • Committer: William Grant
  • Date: 2010-02-26 13:27:55 UTC
  • Revision ID: grantw@unimelb.edu.au-20100226132755-6aya9set3q8nkgyv
Tags: 1.0
Bump version to 1.0. This is it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
227
227
    logfile = os.path.join(config['paths']['logs'], 'ivle_error.log')
228
228
    logfail = False
229
229
 
230
 
    req.status = mod_python.apache.HTTP_INTERNAL_SERVER_ERROR
 
230
    # XXX: This remains here for ivle.interpret's IVLEErrors. Once we rewrite
 
231
    #      fileservice, req.status should always be 500 (ISE) here.
 
232
    try:
 
233
        httpcode = exc_value.httpcode
 
234
        req.status = httpcode
 
235
    except AttributeError:
 
236
        httpcode = None
 
237
        req.status = mod_python.apache.HTTP_INTERNAL_SERVER_ERROR
231
238
 
232
239
    try:
233
240
        publicmode = req.publicmode