root/galaxy-central/eggs/WebError-0.8a-py2.6.egg/weberror/util/errorapp.py @ 3

リビジョン 3, 306 bytes (コミッタ: kohda, 14 年 前)

Install Unix tools  http://hannonlab.cshl.edu/galaxy_unix_tools/galaxy.html

行番号 
1"""
2This simple application creates errors
3"""
4
5def error_app(environ, start_response):
6    environ['errorapp.item'] = 1
7    raise_error()
8
9def raise_error():
10    if 1 == 1:
11        raise Exception('This is an exception')
12    else:
13        do_stuff()
14
15def make_error_app(global_conf):
16    return error_app
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。