# HG changeset patch # User Mads Kiilerich # Date 1359426081 -3600 # Node ID 09757b15ce7ca5e096809c82117237710c50d4cc # Parent 6dd1e4d607203ec08b03b720394b145ca08c3729 notification: don't expand %(when)s in usernames diff -r 6dd1e4d60720 -r 09757b15ce7c rhodecode/model/notification.py --- 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):