Mercurial > kallithea
comparison rhodecode/model/user.py @ 1716:7d1fc253549e beta
notification to commit author + gardening
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 23 Nov 2011 22:46:14 +0200 |
parents | 54687aa00724 |
children | 07e56179633e |
comparison
equal
deleted
inserted
replaced
1715:e1e482093077 | 1716:7d1fc253549e |
---|---|
48 'repository.write': 3, | 48 'repository.write': 3, |
49 'repository.admin': 3} | 49 'repository.admin': 3} |
50 | 50 |
51 | 51 |
52 class UserModel(BaseModel): | 52 class UserModel(BaseModel): |
53 | |
53 def get(self, user_id, cache=False): | 54 def get(self, user_id, cache=False): |
54 user = self.sa.query(User) | 55 user = self.sa.query(User) |
55 if cache: | 56 if cache: |
56 user = user.options(FromCache("sql_cache_short", | 57 user = user.options(FromCache("sql_cache_short", |
57 "get_user_%s" % user_id)) | 58 "get_user_%s" % user_id)) |