comparison 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
comparison
equal deleted inserted replaced
92:2968fb635787 93:aec4c0071cb3
1 1
2 def get_repo_slug(request): 2 def get_repo_slug(request):
3 path_info = request.environ.get('PATH_INFO') 3 path_info = request.environ.get('PATH_INFO')
4 repo_name = path_info.split('/')[-2] 4 uri_lst = path_info.split('/')
5 action = path_info.split('/')[-1] 5 print uri_lst
6 6 print 'len', len(uri_lst)
7 repo_name = uri_lst[1]
7 return repo_name 8 return repo_name