Mercurial > kallithea
diff rhodecode/controllers/admin/settings.py @ 692:cb0d9ce6ac5c beta
#50 on point cache invalidation changes.
Created cacheInvalidation table
cleaned up sa sessions from models, since it wasn't really needed.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 15 Nov 2010 02:26:19 +0100 |
parents | 7486da5f0628 |
children | 9e9f1b919c0c |
line wrap: on
line diff
--- a/rhodecode/controllers/admin/settings.py Sun Nov 14 22:54:16 2010 +0100 +++ b/rhodecode/controllers/admin/settings.py Mon Nov 15 02:26:19 2010 +0100 @@ -248,7 +248,7 @@ """ # url('admin_settings_my_account') - c.user = UserModel(self.sa).get(c.rhodecode_user.user_id, cache=False) + c.user = UserModel().get(c.rhodecode_user.user_id, cache=False) all_repos = self.sa.query(Repository)\ .filter(Repository.user_id == c.user.user_id)\ .order_by(func.lower(Repository.repo_name))\ @@ -289,7 +289,7 @@ except formencode.Invalid, errors: c.user = user_model.get(c.rhodecode_user.user_id, cache=False) - c.user = UserModel(self.sa).get(c.rhodecode_user.user_id, cache=False) + c.user = UserModel().get(c.rhodecode_user.user_id, cache=False) all_repos = self.sa.query(Repository)\ .filter(Repository.user_id == c.user.user_id)\ .order_by(func.lower(Repository.repo_name))\