comparison pylons_app/lib/base.py @ 151:988477a05db6

moved sqlalchemy session to base.
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 15 May 2010 19:05:13 +0200
parents 79a4f9f1cbd6
children 8e01265fb586
comparison
equal deleted inserted replaced
150:b15d4ac75004 151:988477a05db6
19 """Invoke the Controller""" 19 """Invoke the Controller"""
20 # WSGIController.__call__ dispatches to the Controller method 20 # WSGIController.__call__ dispatches to the Controller method
21 # the request is routed to. This routing information is 21 # the request is routed to. This routing information is
22 # available in environ['pylons.routes_dict'] 22 # available in environ['pylons.routes_dict']
23 c.repo_list = _get_repos() 23 c.repo_list = _get_repos()
24 self.sa = meta.Session
24 try: 25 try:
25 return WSGIController.__call__(self, environ, start_response) 26 return WSGIController.__call__(self, environ, start_response)
26 finally: 27 finally:
27 meta.Session.remove() 28 meta.Session.remove()