diff -r 7bdcbb4f2c27 -r 2489392ffb56 taskapp/utilities/notification.py --- a/taskapp/utilities/notification.py Sun Feb 28 10:43:36 2010 +0530 +++ b/taskapp/utilities/notification.py Sun Feb 28 13:25:24 2010 +0530 @@ -71,14 +71,14 @@ elif role in ["DV", "MG", "AD"]: accepting_user = sent_from - user_url = "/user/view/uid=%s"%(accepting_user.id) ## i mean the user who has accepted it - requested_by_url = "/user/view/uid=%s"%(requested_by.id) + user_url = '%s'%(accepting_user.id, accepting_user.username) ## i mean the user who has accepted it + requested_by_url = '%s'%(requested_by.id, requested_by.username) role_rights = dict(RIGHTS_CHOICES)[role] role_learn_url = "/about/%s"%role_rights.lower() if reply: notification.sub = "New %s for the site"%role_rights - notification.message = "%s has accepted request made by %s asking him to act as a %s for the website.
"(user_url, requested_by_url, role_rights) + notification.message = "%s has accepted request made by %s asking him to act as a %s for the website.
"%(user_url, requested_by_url, role_rights) else: notification.sub = "Rejected your request to act as %s"%role_rights notification.message = "%s has rejected your request asking him to act as a %s.
"%(new_mentor_url, task_url)