Mercurial > kallithea
comparison kallithea/controllers/api/__init__.py @ 4197:d208416c84c6 kallithea-2.2.5-rebrand
Rename rhodecode_user to authuser - it is an AuthUser instance
author | Bradley M. Kuhn <bkuhn@sfconservancy.org> |
---|---|
date | Wed, 02 Jul 2014 19:05:10 -0400 |
parents | d1addaf7a91e |
children | ad38f9f93b3b |
comparison
equal
deleted
inserted
replaced
4196:06e49be38d78 | 4197:d208416c84c6 |
---|---|
187 func_kwargs = dict(izip_longest(reversed(arglist), reversed(defaults), | 187 func_kwargs = dict(izip_longest(reversed(arglist), reversed(defaults), |
188 fillvalue=default_empty)) | 188 fillvalue=default_empty)) |
189 | 189 |
190 # this is little trick to inject logged in user for | 190 # this is little trick to inject logged in user for |
191 # perms decorators to work they expect the controller class to have | 191 # perms decorators to work they expect the controller class to have |
192 # rhodecode_user attribute set | 192 # authuser attribute set |
193 self.rhodecode_user = auth_u | 193 self.authuser = auth_u |
194 | 194 |
195 # This attribute will need to be first param of a method that uses | 195 # This attribute will need to be first param of a method that uses |
196 # api_key, which is translated to instance of user at that name | 196 # api_key, which is translated to instance of user at that name |
197 USER_SESSION_ATTR = 'apiuser' | 197 USER_SESSION_ATTR = 'apiuser' |
198 | 198 |