diff rhodecode/model/notification.py @ 3255:09757b15ce7c beta

notification: don't expand %(when)s in usernames
author Mads Kiilerich <madski@unity3d.com>
date Tue, 29 Jan 2013 03:21:21 +0100
parents 3274ba9f1489
children 81397bd3e77f
line wrap: on
line diff
--- a/rhodecode/model/notification.py	Tue Jan 29 03:21:08 2013 +0100
+++ b/rhodecode/model/notification.py	Tue Jan 29 03:21:21 2013 +0100
@@ -234,9 +234,9 @@
 
         data = dict(
             user=notification.created_by_user.username,
-            action=_map[notification.type_]
+            action=_map[notification.type_] % {'when': when},
         )
-        return (tmpl % data) % {'when': when}
+        return tmpl % data
 
 
 class EmailNotificationModel(BaseModel):