comparison rhodecode/config/middleware.py @ 4186:7e5f8c12a3fc kallithea-2.2.5-rebrand

First step in two-part process to rename directories to kallithea. This first step is to change all references in the files where they refer to the old directory name.
author Bradley M. Kuhn <bkuhn@sfconservancy.org>
date Wed, 02 Jul 2014 19:04:28 -0400
parents ffd45b185016
children
comparison
equal deleted inserted replaced
4185:aaa7c3331186 4186:7e5f8c12a3fc
24 from paste.gzipper import make_gzip_middleware 24 from paste.gzipper import make_gzip_middleware
25 25
26 from pylons.middleware import ErrorHandler, StatusCodeRedirect 26 from pylons.middleware import ErrorHandler, StatusCodeRedirect
27 from pylons.wsgiapp import PylonsApp 27 from pylons.wsgiapp import PylonsApp
28 28
29 from rhodecode.lib.middleware.simplehg import SimpleHg 29 from kallithea.lib.middleware.simplehg import SimpleHg
30 from rhodecode.lib.middleware.simplegit import SimpleGit 30 from kallithea.lib.middleware.simplegit import SimpleGit
31 from rhodecode.lib.middleware.https_fixup import HttpsFixup 31 from kallithea.lib.middleware.https_fixup import HttpsFixup
32 from rhodecode.config.environment import load_environment 32 from kallithea.config.environment import load_environment
33 from rhodecode.lib.middleware.wrapper import RequestWrapper 33 from kallithea.lib.middleware.wrapper import RequestWrapper
34 34
35 35
36 def make_app(global_conf, full_stack=True, static_files=True, **app_conf): 36 def make_app(global_conf, full_stack=True, static_files=True, **app_conf):
37 """Create a Pylons WSGI application and return it 37 """Create a Pylons WSGI application and return it
38 38
62 app = RoutesMiddleware(app, config['routes.map']) 62 app = RoutesMiddleware(app, config['routes.map'])
63 app = SessionMiddleware(app, config) 63 app = SessionMiddleware(app, config)
64 64
65 # CUSTOM MIDDLEWARE HERE (filtered by error handling middlewares) 65 # CUSTOM MIDDLEWARE HERE (filtered by error handling middlewares)
66 if asbool(config['pdebug']): 66 if asbool(config['pdebug']):
67 from rhodecode.lib.profiler import ProfilingMiddleware 67 from kallithea.lib.profiler import ProfilingMiddleware
68 app = ProfilingMiddleware(app) 68 app = ProfilingMiddleware(app)
69 69
70 if asbool(full_stack): 70 if asbool(full_stack):
71 71
72 from rhodecode.lib.middleware.sentry import Sentry 72 from kallithea.lib.middleware.sentry import Sentry
73 from rhodecode.lib.middleware.errormator import Errormator 73 from kallithea.lib.middleware.errormator import Errormator
74 if Errormator and asbool(config['app_conf'].get('errormator')): 74 if Errormator and asbool(config['app_conf'].get('errormator')):
75 app = Errormator(app, config) 75 app = Errormator(app, config)
76 elif Sentry: 76 elif Sentry:
77 app = Sentry(app, config) 77 app = Sentry(app, config)
78 78