root/galaxy-central/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/paster_templates/paste_deploy/+package+/wsgiapp.py_tmpl @ 3

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

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

行番号 
1import sampleapp
2from paste.deploy.config import ConfigMiddleware
3
4def make_app(
5    global_conf,
6    # Optional and required configuration parameters
7    # can go here, or just **kw; greeting is required:
8    greeting,
9    **kw):
10    # This is a WSGI application:
11    app = sampleapp.application
12    # Here we merge all the keys into one configuration
13    # dictionary; you don't have to do this, but this
14    # can be convenient later to add ad hoc configuration:
15    conf = global_conf.copy()
16    conf.update(kw)
17    conf['greeting'] = greeting
18    # ConfigMiddleware means that paste.deploy.CONFIG will,
19    # during this request (threadsafe) represent the
20    # configuration dictionary we set up:
21    app = ConfigMiddleware(app, conf)
22    return app
23
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。