view 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 source

   
def get_repo_slug(request):
    path_info = request.environ.get('PATH_INFO')
    uri_lst = path_info.split('/')
    print uri_lst
    print 'len', len(uri_lst)    
    repo_name = uri_lst[1]
    return repo_name