diff options
author | Luke Macken <lmacken@redhat.com> | 2008-06-27 22:57:47 -0400 |
---|---|---|
committer | Luke Macken <lmacken@redhat.com> | 2008-06-27 22:57:47 -0400 |
commit | ed633ea60f03becbf1a7689179112aab883ee57d (patch) | |
tree | b30eedba77f039a18cb9e2280ed81c3ca895a0b0 | |
parent | ef6aa096bbb8f52c2bad76f3b086167db326da89 (diff) | |
download | manas-ed633ea60f03becbf1a7689179112aab883ee57d.tar.gz manas-ed633ea60f03becbf1a7689179112aab883ee57d.tar.xz manas-ed633ea60f03becbf1a7689179112aab883ee57d.zip |
Some minor tweaks to the default template
-rw-r--r-- | manas/config/app_cfg.py | 7 | ||||
-rw-r--r-- | manas/config/middleware.py | 1 | ||||
-rw-r--r-- | 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: |