source: MILK/trunk/milk_server/milk_server/config/middleware.py @ 4524

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/MILK/trunk/milk_server/milk_server/config/middleware.py@5913
Revision 4524, 3.0 KB checked in by cbyrom, 11 years ago (diff)

Rename ndgDiscovery.config to milk.config.

Line 
1from paste import httpexceptions
2from paste.cascade import Cascade
3from paste.urlparser import StaticURLParser
4from paste.registry import RegistryManager
5from paste.deploy.config import ConfigMiddleware, CONFIG
6from paste.deploy.converters import asbool
7
8from pylons import config
9from pylons.error import error_template
10from pylons.middleware import ErrorHandler, ErrorDocuments, StaticJavascripts, error_mapper
11from pylons.wsgiapp import PylonsApp
12
13from milk_server.config.environment import load_environment
14
15from milk_server.config.milkMiddleware import milkMiddleware
16
17# Logging doesn't need configuring if you have paste.translogger in your config file.
18#import logging
19
20def make_app(global_conf, full_stack=True, **app_conf):
21    """Create a WSGI application and return it
22   
23    global_conf is a dict representing the Paste configuration options, the
24    paste.deploy.converters should be used when parsing Paste config options
25    to ensure they're treate