diff rhodecode/lib/base.py @ 629:7e536d1af60d beta

Code refactoring,models renames cleaned up sqlalchemy sessions, added cache support to most queries in models fixed test.ini file
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 21 Oct 2010 01:38:14 +0200
parents b75b77ef649d
children 758f64f3fbda
line wrap: on
line diff
--- a/rhodecode/lib/base.py	Wed Oct 20 18:11:11 2010 +0200
+++ b/rhodecode/lib/base.py	Thu Oct 21 01:38:14 2010 +0200
@@ -9,7 +9,7 @@
 from rhodecode.lib import auth
 from rhodecode.lib.utils import get_repo_slug
 from rhodecode.model import meta
-from rhodecode.model.hg_model import _get_repos_cached, \
+from rhodecode.model.hg import _get_repos_cached, \
     _get_repos_switcher_cached
 
 class BaseController(WSGIController):
@@ -31,7 +31,7 @@
                 c.repository_tags = {}
                 c.repository_branches = {}
                     
-        self.sa = meta.Session
+        self.sa = meta.Session()
     
     def __call__(self, environ, start_response):
         """Invoke the Controller"""