|
a/Allura/allura/config/middleware.py |
|
b/Allura/allura/config/middleware.py |
1 |
# -*- coding: utf-8 -*-
|
1 |
# -*- coding: utf-8 -*-
|
2 |
"""WSGI middleware initialization for the allura application."""
|
2 |
"""WSGI middleware initialization for the allura application."""
|
3 |
import mimetypes
|
3 |
import mimetypes
|
4 |
|
4 |
|
|
|
5 |
import pylons
|
|
|
6 |
import pylons.middleware
|
5 |
import tg
|
7 |
import tg
|
|
|
8 |
import tg.error
|
|
|
9 |
pylons.c = pylons.tmpl_context
|
|
|
10 |
pylons.g = pylons.app_globals
|
6 |
import pkg_resources
|
11 |
import pkg_resources
|
7 |
from tg import config
|
12 |
from tg import config
|
8 |
from paste.deploy.converters import asbool
|
13 |
from paste.deploy.converters import asbool
|
9 |
from paste.registry import RegistryManager
|
14 |
from paste.registry import RegistryManager
|
10 |
from beaker.middleware import SessionMiddleware
|
15 |
from beaker.middleware import SessionMiddleware
|