diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2010-11-15 02:26:19 +0100 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2010-11-15 02:26:19 +0100 |
commit | 6e8cacfbda675509a8ced2630c1345c8ba17eb5c (patch) | |
tree | 64e590af4ff1233ba0ad5eb8bb2cec5f91aa1088 /rhodecode/model/user.py | |
parent | e731b80a02edd9eff31a2e26776b1bf69d0f06da (diff) |
#50 on point cache invalidation changes.
Created cacheInvalidation table
cleaned up sa sessions from models, since it wasn't really needed.
--HG--
branch : beta
rename : rhodecode/model/permission_model.py => rhodecode/model/permission.py
Diffstat (limited to 'rhodecode/model/user.py')
-rw-r--r-- | rhodecode/model/user.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/rhodecode/model/user.py b/rhodecode/model/user.py index cf8e1be7..0b1ce98e 100644 --- a/rhodecode/model/user.py +++ b/rhodecode/model/user.py @@ -36,11 +36,8 @@ class DefaultUserException(Exception):pass 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) |