Commits

Ashutosh Singla  committed ca5e393

use %s(name) instead of %r(name)

  • Participants
  • Parent commits d993f93

Comments (0)

Files changed (2)

File MoinMoin/apps/admin/views.py

     """
     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', '')

File MoinMoin/apps/frontend/views.py

                             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':