changeset 3145:bee09f317edc beta

nicer representation of list of rescanned repositories
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 04 Jan 2013 00:24:22 +0100
parents a64fb6d9ce03
children c5169e445fb8
files rhodecode/controllers/admin/settings.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/controllers/admin/settings.py	Thu Jan 03 17:55:44 2013 +0100
+++ b/rhodecode/controllers/admin/settings.py	Fri Jan 04 00:24:22 2013 +0100
@@ -51,7 +51,7 @@
 from rhodecode.model.db import User
 from rhodecode.model.notification import EmailNotificationModel
 from rhodecode.model.meta import Session
-from rhodecode.lib.utils2 import str2bool
+from rhodecode.lib.utils2 import str2bool, safe_unicode
 
 log = logging.getLogger(__name__)
 
@@ -119,10 +119,10 @@
                 invalidate_cache('get_repo_cached_%s' % repo_name)
 
             added, removed = repo2db_mapper(initial, rm_obsolete)
-
-            h.flash(_('Repositories successfully'
-                      ' rescanned added: %s, removed: %s') %
-                    (len(added), len(removed)),
+            _repr = lambda l: ', '.join(map(safe_unicode, l)) or '-'
+            h.flash(_('Repositories successfully '
+                      'rescanned added: %s ; removed: %s') %
+                    (_repr(added), _repr(removed)),
                     category='success')
 
         if setting_id == 'whoosh':