Mercurial > kallithea
diff rhodecode/model/user.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 | ecc566f8b69f |
children | 9e9f1b919c0c |
line wrap: on
line diff
--- a/rhodecode/model/user.py Sun Nov 14 22:54:16 2010 +0100 +++ b/rhodecode/model/user.py Mon Nov 15 02:26:19 2010 +0100 @@ -36,11 +36,8 @@ class UserModel(object): - def __init__(self, sa=None): - if not sa: - self.sa = Session() - else: - self.sa = sa + def __init__(self): + self.sa = Session() def get(self, user_id, cache=False): user = self.sa.query(User)