changeset 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 8c038e588a42
children aa5ef0f15548
files pylons_app/lib/simplehg.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pylons_app/lib/simplehg.py	Wed Apr 28 22:09:01 2010 +0200
+++ b/pylons_app/lib/simplehg.py	Wed Apr 28 22:09:33 2010 +0200
@@ -12,7 +12,8 @@
         if not is_mercurial(environ):
             return self.application(environ, start_response)
         else:
-            repo_name = environ['PATH_INFO'].replace('/', '')
+            #repo_name = environ['PATH_INFO'].replace('/', '')
+            repo_name = environ['PATH_INFO'].split('/')[1]
             if not environ['PATH_INFO'].endswith == '/':
                 environ['PATH_INFO'] += '/'
             #environ['SCRIPT_NAME'] = request.path