Mercurial > public > src > rhodecode
diff pylons_app/lib/utils.py @ 93:aec4c0071cb3
added empty controllers for branches tags files graph, routing and test for them
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 21 Apr 2010 00:26:11 +0200 |
parents | 670713507d03 |
children | f24b9a2934cf |
line wrap: on
line diff
--- a/pylons_app/lib/utils.py Wed Apr 21 00:22:20 2010 +0200 +++ b/pylons_app/lib/utils.py Wed Apr 21 00:26:11 2010 +0200 @@ -1,7 +1,8 @@ def get_repo_slug(request): path_info = request.environ.get('PATH_INFO') - repo_name = path_info.split('/')[-2] - action = path_info.split('/')[-1] - + uri_lst = path_info.split('/') + print uri_lst + print 'len', len(uri_lst) + repo_name = uri_lst[1] return repo_name