view pylons_app/lib/utils.py @ 92:2968fb635787

updated routing
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 21 Apr 2010 00:22:20 +0200
parents 670713507d03
children aec4c0071cb3
line wrap: on
line source

   
def get_repo_slug(request):
    path_info = request.environ.get('PATH_INFO')
    repo_name = path_info.split('/')[-2]
    action = path_info.split('/')[-1]
    
    return repo_name