From 19baab1b034b31a53a0dbddd17d3f31594ce5afc Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Sun, 29 Jun 2014 04:23:50 +0300 Subject: Remove Paste#http, Paste#urlmap and Paste#static dependencies. Changes: * Paste#http -> Gunicorn * Paste#urlmap and Paste#static -> werkzeug.wsgi.SharedDataMiddleware --- mediagoblin/app.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mediagoblin/app.py') diff --git a/mediagoblin/app.py b/mediagoblin/app.py index e65e6d10..d912206e 100644 --- a/mediagoblin/app.py +++ b/mediagoblin/app.py @@ -23,6 +23,7 @@ from mediagoblin.tools.routing import endpoint_to_controller from werkzeug.wrappers import Request from werkzeug.exceptions import HTTPException from werkzeug.routing import RequestRedirect +from werkzeug.wsgi import SharedDataMiddleware from mediagoblin import meddleware, __version__ from mediagoblin.db.util import check_db_up_to_date @@ -277,8 +278,11 @@ def paste_app_factory(global_config, **app_config): if not mediagoblin_config: raise IOError("Usable mediagoblin config not found.") + del app_config['config'] mgoblin_app = MediaGoblinApp(mediagoblin_config) + mgoblin_app.call_backend = SharedDataMiddleware(mgoblin_app.call_backend, + exports=app_config) mgoblin_app = hook_transform('wrap_wsgi', mgoblin_app) return mgoblin_app -- cgit v1.2.3