blob: 8c24a8c192ab62878710ca76754c9c37b439261d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
"""Pylons middleware initialization"""
from tg.middleware import setup_tg_wsgi_app
from manas.config.app_cfg import base_config
from manas.config.environment import load_environment
#Use base_config to setup the nessisary WSGI App factory.
#make_base_app will wrap the TG2 app with all the middleware it needs.
make_base_app = setup_tg_wsgi_app(load_environment, base_config)
def make_app(global_conf, full_stack=True, **app_conf):
app = make_base_app(global_conf, full_stack=True, **app_conf)
#Wrap your base turbogears app with custom middleware
return app
|