source: publico/il.spdo/trunk/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/paster_templates/paste_deploy/+package+/wsgiapp.py_tmpl @ 5327

Última Alteração nesse arquivo desde 5327 foi 5327, incluída por fabianosantos, 8 anos atrás

Import inicial.

File size: 758 bytes
Linha 
1from paste.deploy.config import ConfigMiddleware
2
3import sampleapp
4
5
6def make_app(
7    global_conf,
8    # Optional and required configuration parameters
9    # can go here, or just **kw; greeting is required:
10    greeting,
11    **kw):
12    # This is a WSGI application:
13    app = sampleapp.application
14    # Here we merge all the keys into one configuration
15    # dictionary; you don't have to do this, but this
16    # can be convenient later to add ad hoc configuration:
17    conf = global_conf.copy()
18    conf.update(kw)
19    conf['greeting'] = greeting
20    # ConfigMiddleware means that paste.deploy.CONFIG will,
21    # during this request (threadsafe) represent the
22    # configuration dictionary we set up:
23    app = ConfigMiddleware(app, conf)
24    return app
Note: Veja TracBrowser para ajuda no uso do navegador do trac.
 

The contents and data of this website are published under license:
Creative Commons 4.0 Brasil - Atribuir Fonte - Compartilhar Igual.