From ed633ea60f03becbf1a7689179112aab883ee57d Mon Sep 17 00:00:00 2001 From: Luke Macken Date: Fri, 27 Jun 2008 22:57:47 -0400 Subject: Some minor tweaks to the default template --- manas/config/app_cfg.py | 7 ++++--- manas/config/middleware.py | 1 - manas/lib/base.py | 4 ---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/manas/config/app_cfg.py b/manas/config/app_cfg.py index 3f9da94..73d0b01 100644 --- a/manas/config/app_cfg.py +++ b/manas/config/app_cfg.py @@ -9,14 +9,15 @@ base_config.renderers = [] base_config.package = manas -#Set the default renderer +# Set the default renderer base_config.default_renderer = 'genshi' base_config.renderers.append('genshi') -#Configure the base SQLALchemy Setup +# Configure the base SQLALchemy Setup base_config.use_sqlalchemy = True base_config.model = manas.model -#Configure the authentication backend + +# Configure the authentication backend base_config.auth_backend = 'sqlalchemy' base_config.sa_auth = Bunch() base_config.sa_auth.dbsession = model.DBSession diff --git a/manas/config/middleware.py b/manas/config/middleware.py index 8656e8e..8c24a8c 100644 --- a/manas/config/middleware.py +++ b/manas/config/middleware.py @@ -11,4 +11,3 @@ def make_app(global_conf, full_stack=True, **app_conf): app = make_base_app(global_conf, full_stack=True, **app_conf) #Wrap your base turbogears app with custom middleware return app - \ No newline at end of file diff --git a/manas/lib/base.py b/manas/lib/base.py index d27284a..ab08511 100644 --- a/manas/lib/base.py +++ b/manas/lib/base.py @@ -30,10 +30,6 @@ class BaseController(TGController): # TGController.__call__ dispatches to the Controller method # the request is routed to. This routing information is # available in environ['pylons.routes_dict'] - - # Create a container to send widgets to the template. Only those sent - # in here will have their resources automatically included in the - # template try: return TGController.__call__(self, environ, start_response) finally: -- cgit