diff options
author | nishanth | 2010-02-28 13:25:24 +0530 |
---|---|---|
committer | nishanth | 2010-02-28 13:25:24 +0530 |
commit | 42c60f17e97c0712891f1a9b016e9ccb15e1cba7 (patch) | |
tree | f9e073464d033d10b06564faa3514ffe30498616 /taskapp/utilities | |
parent | 81b85e91f81aa28fd175179bcf692ab2b6c9e0e1 (diff) | |
download | pytask-42c60f17e97c0712891f1a9b016e9ccb15e1cba7.tar.gz pytask-42c60f17e97c0712891f1a9b016e9ccb15e1cba7.tar.bz2 pytask-42c60f17e97c0712891f1a9b016e9ccb15e1cba7.zip |
added the functionality to request a user to be AD MG DV.
Diffstat (limited to 'taskapp/utilities')
-rw-r--r-- | taskapp/utilities/notification.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/taskapp/utilities/notification.py b/taskapp/utilities/notification.py index 4e7396d..f95349d 100644 --- a/taskapp/utilities/notification.py +++ b/taskapp/utilities/notification.py @@ -71,14 +71,14 @@ def create_notification(role, sent_to, sent_from=None, reply=None, task=None, re 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 = '<a href="/user/view/uid=%s">%s</a>'%(accepting_user.id, accepting_user.username) ## i mean the user who has accepted it + requested_by_url = '<a href="/user/view/uid=%s">%s</a>'%(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.<br />"(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.<br />"%(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.<br />"%(new_mentor_url, task_url) |