diff pylons_app/lib/utils.py @ 248:fb7f066126cc

Added support for repository located in subdirectories.
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 03 Jun 2010 20:28:46 +0200
parents a83a1799480c
children 3782a6d698af
line wrap: on
line diff
--- a/pylons_app/lib/utils.py	Thu Jun 03 16:01:47 2010 +0200
+++ b/pylons_app/lib/utils.py	Thu Jun 03 20:28:46 2010 +0200
@@ -6,10 +6,7 @@
 
 
 def get_repo_slug(request):
-    path_info = request.environ.get('PATH_INFO')
-    uri_lst = path_info.split('/')   
-    repo_name = uri_lst[1]
-    return repo_name
+    return request.environ['pylons.routes_dict'].get('repo_name')
 
 def is_mercurial(environ):
     """
@@ -131,14 +128,7 @@
 
 def repo2db_mapper():
     """
-    put !
+    scann all dirs for .hgdbid
+    if some dir doesn't have one generate one.
     """
-    pass
-    #scann all dirs for .hgdbid
-    #if some dir doesn't have one generate one.
-    #
-    
-    
-    
-    
-    
+    pass
\ No newline at end of file