debianmacno-cupsweb
Last change
on this file since 77aa4c8 was
973dd91,
checked in by Edward Z. Yang <edwardzyang@…>, 16 years ago
|
Initial commit.
Signed-off-by: Edward Z. Yang <edwardzyang@…>
|
-
Property mode set to
100644
|
File size:
546 bytes
|
Rev | Line | |
---|
[973dd91] | 1 | """TurboGears middleware initialization""" |
---|
| 2 | from sipbmp3web.config.app_cfg import base_config |
---|
| 3 | from sipbmp3web.config.environment import load_environment |
---|
| 4 | |
---|
| 5 | #Use base_config to setup the necessary WSGI App factory. |
---|
| 6 | #make_base_app will wrap the TG2 app with all the middleware it needs. |
---|
| 7 | make_base_app = base_config.setup_tg_wsgi_app(load_environment) |
---|
| 8 | |
---|
| 9 | def make_app(global_conf, full_stack=True, **app_conf): |
---|
| 10 | app = make_base_app(global_conf, full_stack=True, **app_conf) |
---|
| 11 | #Wrap your base turbogears app with custom middleware |
---|
| 12 | return app |
---|
| 13 | |
---|
| 14 | |
---|
Note: See
TracBrowser
for help on using the repository browser.