diff MoinMoin/apps/admin/views.py @ 1414:614005b5edb3

fixed some .format() unicode issues, partially fixing bug #124
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 07 Jul 2012 20:22:21 +0200
parents 4ac437141bbe
children d7ccb653e7aa
line wrap: on
line diff
--- a/MoinMoin/apps/admin/views.py	Sat Jul 07 20:19:20 2012 +0200
+++ b/MoinMoin/apps/admin/views.py	Sat Jul 07 20:22:21 2012 +0200
@@ -77,9 +77,9 @@
         if ok:
             setattr(u, key, val)
             u.save()
-            flash('{0}.{1}: {2} -> {3}'.format(user_name, key, unicode(oldval), unicode(val), ), "info")
+            flash(u'{0}.{1}: {2} -> {3}'.format(user_name, key, unicode(oldval), unicode(val), ), "info")
         else:
-            flash('modifying {0}.{1} failed'.format(user_name, key, ), "error")
+            flash(u'modifying {0}.{1} failed'.format(user_name, key, ), "error")
     return redirect(url_for('.userbrowser'))