# HG changeset patch # User Marcin Kuzminski # Date 2010-02-27 16:28:25 # Node ID 436bee78d81a02835837d11ef1bf6c308b866bb4 # Parent e121401a17d84654772d6a7cdd482da34873aff0 Litle code cleanups, This version handles repos correctly. diff --git a/development.ini b/development.ini --- a/development.ini +++ b/development.ini @@ -26,7 +26,7 @@ port = 5000 [app:main] use = egg:pylons_app full_stack = true -static_files = true +static_files = false lang=en cache_dir = %(here)s/data @@ -45,10 +45,10 @@ cache_dir = %(here)s/data keys = root, routes, pylons_app, sqlalchemy [handlers] -keys = console,chainsaw +keys = console [formatters] -keys = generic,xmllayout +keys = generic ############# ## LOGGERS ## @@ -84,12 +84,6 @@ args = (sys.stderr,) level = NOTSET formatter = generic -[handler_chainsaw] -class = xmllayout.RawSocketHandler -args = ('localhost', 4448) -level = NOTSET -formatter = xmllayout - ################ ## FORMATTERS ## ################ @@ -98,6 +92,3 @@ formatter = xmllayout format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s datefmt = %H:%M:%S -[formatter_xmllayout] -class = xmllayout.XMLLayout - diff --git a/production.ini b/production.ini --- a/production.ini +++ b/production.ini @@ -26,7 +26,7 @@ port = 8001 [app:main] use = egg:pylons_app full_stack = true -static_files = true +static_files = false lang=en cache_dir = %(here)s/data diff --git a/pylons_app/config/middleware.py b/pylons_app/config/middleware.py --- a/pylons_app/config/middleware.py +++ b/pylons_app/config/middleware.py @@ -8,10 +8,10 @@ from pylons import config from pylons.middleware import ErrorHandler, StatusCodeRedirect from pylons.wsgiapp import PylonsApp from routes.middleware import RoutesMiddleware + from pylons_app.config.environment import load_environment - def make_app(global_conf, full_stack = True, **app_conf): """Create a Pylons WSGI application and return it diff --git a/pylons_app/lib/base.py b/pylons_app/lib/base.py --- a/pylons_app/lib/base.py +++ b/pylons_app/lib/base.py @@ -17,4 +17,3 @@ class BaseController(WSGIController): return WSGIController.__call__(self, environ, start_response) finally: pass - #meta.Session.remove()