view pylons_app/lib/utils.py @ 82:670713507d03

Moved summary to seperate controller, little cleanups in templates. added archives to summary
author Marcin Kuzminski <marcin@python-blog.com>
date Sun, 18 Apr 2010 00:31:58 +0200
parents
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