##// END OF EJS Templates
nicer representation of list of rescanned repositories
marcink -
r3145:bee09f31 beta
parent child Browse files
Show More
@@ -51,7 +51,7 b' from rhodecode.model.user import UserMod'
51 51 from rhodecode.model.db import User
52 52 from rhodecode.model.notification import EmailNotificationModel
53 53 from rhodecode.model.meta import Session
54 from rhodecode.lib.utils2 import str2bool
54 from rhodecode.lib.utils2 import str2bool, safe_unicode
55 55
56 56 log = logging.getLogger(__name__)
57 57
@@ -119,10 +119,10 b' class SettingsController(BaseController)'
119 119 invalidate_cache('get_repo_cached_%s' % repo_name)
120 120
121 121 added, removed = repo2db_mapper(initial, rm_obsolete)
122
123 h.flash(_('Repositories successfully'
124 ' rescanned added: %s, removed: %s') %
125 (len(added), len(removed)),
122 _repr = lambda l: ', '.join(map(safe_unicode, l)) or '-'
123 h.flash(_('Repositories successfully '
124 'rescanned added: %s ; removed: %s') %
125 (_repr(added), _repr(removed)),
126 126 category='success')
127 127
128 128 if setting_id == 'whoosh':
General Comments 0
You need to be logged in to leave comments. Login now