Mercurial > kallithea
comparison pylons_app/lib/simplehg.py @ 116:345811faa8a0
Changed simplehg middleware repo name function
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 28 Apr 2010 22:09:33 +0200 |
parents | cc5cf1a93902 |
children | f8ae5c1dfae2 |
comparison
equal
deleted
inserted
replaced
115:8c038e588a42 | 116:345811faa8a0 |
---|---|
10 | 10 |
11 def __call__(self, environ, start_response): | 11 def __call__(self, environ, start_response): |
12 if not is_mercurial(environ): | 12 if not is_mercurial(environ): |
13 return self.application(environ, start_response) | 13 return self.application(environ, start_response) |
14 else: | 14 else: |
15 repo_name = environ['PATH_INFO'].replace('/', '') | 15 #repo_name = environ['PATH_INFO'].replace('/', '') |
16 repo_name = environ['PATH_INFO'].split('/')[1] | |
16 if not environ['PATH_INFO'].endswith == '/': | 17 if not environ['PATH_INFO'].endswith == '/': |
17 environ['PATH_INFO'] += '/' | 18 environ['PATH_INFO'] += '/' |
18 #environ['SCRIPT_NAME'] = request.path | 19 #environ['SCRIPT_NAME'] = request.path |
19 environ['PATH_INFO'] = '/' | 20 environ['PATH_INFO'] = '/' |
20 self.baseui = make_ui() | 21 self.baseui = make_ui() |