diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2013-01-04 00:24:22 +0100 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2013-01-04 00:24:22 +0100 |
commit | 629f1538ad4800ff05113516f6a933e2b243f205 (patch) | |
tree | 880546a0a7a8d37956882157e74309ddcaa3db98 | |
parent | ac87ad0e3acafd0a93cf07c9c5f46abedfc17bd2 (diff) |
nicer representation of list of rescanned repositories
--HG--
branch : beta
-rw-r--r-- | rhodecode/controllers/admin/settings.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rhodecode/controllers/admin/settings.py b/rhodecode/controllers/admin/settings.py index 37044ebf..9b6bad30 100644 --- a/rhodecode/controllers/admin/settings.py +++ b/rhodecode/controllers/admin/settings.py @@ -51,7 +51,7 @@ from rhodecode.model.user import UserModel 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 @@ class SettingsController(BaseController): 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': |