diff pylons_app/controllers/repos.py @ 248:fb7f066126cc

Added support for repository located in subdirectories.
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 03 Jun 2010 20:28:46 +0200
parents 51434007e21d
children 3782a6d698af
line wrap: on
line diff
--- a/pylons_app/controllers/repos.py	Thu Jun 03 16:01:47 2010 +0200
+++ b/pylons_app/controllers/repos.py	Thu Jun 03 20:28:46 2010 +0200
@@ -2,6 +2,8 @@
     app_globals as g
 from pylons.controllers.util import abort, redirect
 from pylons_app.lib.auth import LoginRequired
+from pylons.i18n.translation import _
+from pylons_app.lib import helpers as h
 from pylons_app.lib.base import BaseController, render
 from pylons_app.lib.filters import clean_repo
 from pylons_app.lib.utils import check_repo, invalidate_cache
@@ -39,6 +41,7 @@
             self._create_repo(name)
             #clear our cached list for refresh with new repo
             invalidate_cache('cached_repo_list')
+            h.flash(_('created repository %s') % name, category='success')
         except Exception as e:
             log.error(e)
         
@@ -85,7 +88,7 @@
         
         #clear our cached list for refresh with new repo
         invalidate_cache('cached_repo_list')
-                    
+        h.flash(_('deleted repository %s') % rm_path, category='success')            
         return redirect(url('repos'))