Mercurial > kallithea
diff rhodecode/lib/middleware/simplehg.py @ 989:801cdb3e0969 beta
simplified simplegit and simplehg a little
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 01 Feb 2011 02:18:05 +0100 |
parents | b2d5868cc4b8 |
children | 62a1d4155f6b |
line wrap: on
line diff
--- a/rhodecode/lib/middleware/simplehg.py Tue Feb 01 02:16:27 2011 +0100 +++ b/rhodecode/lib/middleware/simplehg.py Tue Feb 01 02:18:05 2011 +0100 @@ -126,7 +126,7 @@ #============================================================== if self.action in ['pull', 'push']: - username = self.__get_environ_user(environ) + username = REMOTE_USER(environ) try: user = self.__get_user(username) self.username = user.username @@ -220,9 +220,6 @@ return repo_name - def __get_environ_user(self, environ): - return environ.get('REMOTE_USER') - def __get_user(self, username): return UserModel().get_by_username(username, cache=True)