diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pylons_app/lib/utils.py	Sun Apr 18 00:31:58 2010 +0200
@@ -0,0 +1,7 @@
+   
+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