changeset 2102:ca5e39389265

use %s(name) instead of %r(name)
author Ashutosh Singla <ashu1461@gmail.com>
date Wed, 24 Apr 2013 19:39:41 +0530
parents d993f93428bc
children 555defa58203
files MoinMoin/apps/admin/views.py MoinMoin/apps/frontend/views.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/admin/views.py	Wed Apr 24 19:30:18 2013 +0530
+++ b/MoinMoin/apps/admin/views.py	Wed Apr 24 19:39:41 2013 +0530
@@ -61,8 +61,8 @@
     """
     u = user.User(auth_username=user_name)
     if request.method == 'GET':
-        return _(u"User profile of %(username)s: %(email)r", username=user_name,
-                 email=(u.email, u.disabled))
+        return _(u"User profile of %(username)s: %(email)s %(disabled)s", username=user_name,
+                 email=u.email, disabled=u.disabled)
 
     if request.method == 'POST':
         key = request.form.get('key', '')
--- a/MoinMoin/apps/frontend/views.py	Wed Apr 24 19:30:18 2013 +0530
+++ b/MoinMoin/apps/frontend/views.py	Wed Apr 24 19:39:41 2013 +0530
@@ -1492,7 +1492,7 @@
                             for name in new_names:
                                 if user.search_users(**{NAME_EXACT: name}):
                                     # duplicate name
-                                    response['flash'].append((_("The username %(name)r is already in use.", name=name),
+                                    response['flash'].append((_("The username '%(name)s' is already in use.", name=name),
                                                               "error"))
                                     success = False
                     if part == 'notification':