comparison rhodecode/lib/middleware/simplegit.py @ 1818:cf51bbfb120e beta

auto white-space removal
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 29 Dec 2011 07:35:51 +0200
parents a8c66e870bd0
children 89efedac4e6c
comparison
equal deleted inserted replaced
1817:523b1011a625 1818:cf51bbfb120e
159 159
160 if action in ['pull', 'push']: 160 if action in ['pull', 'push']:
161 try: 161 try:
162 user = self.__get_user(username) 162 user = self.__get_user(username)
163 if user is None or not user.active: 163 if user is None or not user.active:
164 return HTTPForbidden()(environ, start_response) 164 return HTTPForbidden()(environ, start_response)
165 username = user.username 165 username = user.username
166 except: 166 except:
167 log.error(traceback.format_exc()) 167 log.error(traceback.format_exc())
168 return HTTPInternalServerError()(environ, 168 return HTTPInternalServerError()(environ,
169 start_response) 169 start_response)
197 return HTTPInternalServerError()(environ, start_response) 197 return HTTPInternalServerError()(environ, start_response)
198 198
199 def __make_app(self, repo_name, repo_path): 199 def __make_app(self, repo_name, repo_path):
200 """ 200 """
201 Make an wsgi application using dulserver 201 Make an wsgi application using dulserver
202 202
203 :param repo_name: name of the repository 203 :param repo_name: name of the repository
204 :param repo_path: full path to the repository 204 :param repo_path: full path to the repository
205 """ 205 """
206 206
207 _d = {'/' + repo_name: Repo(repo_path)} 207 _d = {'/' + repo_name: Repo(repo_path)}