From 5323d98a3650222a96fdf19110280991e08b68e8 Mon Sep 17 00:00:00 2001
From: Nishanth Amuluru
Date: Wed, 5 Jan 2011 22:22:10 +0530
Subject: Replaced the word mentor with reviewer
---
taskapp/utilities/notification.py | 70 +++++++++++++++++++--------------------
1 file changed, 35 insertions(+), 35 deletions(-)
(limited to 'taskapp/utilities')
diff --git a/taskapp/utilities/notification.py b/taskapp/utilities/notification.py
index eda8e06..da6e6d0 100644
--- a/taskapp/utilities/notification.py
+++ b/taskapp/utilities/notification.py
@@ -9,12 +9,12 @@ def create_notification(role, sent_to, sent_from=None, reply=None, task=None, re
sent_to: a user to which the notification is to be sent
sent_from : a user from which the message has originated
A user who approves/rejects in case of request
- A mentor who closes/complets the task
+ A reviewer who closes/complets the task
reply: A boolean
task: a task if applicable
requested_by: a user makes the request
- A mentor who assigns credits in case of pynts
- A mentor who requests to act as a mentor
+ A reviewer who assigns credits in case of pynts
+ A reviewer who requests to act as a reviewer
remarks: any remarks for rejecting
receiving_user: user receiving pynts
pynts: the obvious
@@ -33,18 +33,18 @@ def create_notification(role, sent_to, sent_from=None, reply=None, task=None, re
task_url= '%s'%(task.id, task.title)
credits_url = '%s'%(task.id, "click here")
- mentor_url = '%s'%(requested_by.id, requested_by.username)
+ reviewer_url = '%s'%(requested_by.id, requested_by.username)
admin_url = '%s'%(sent_from.id, sent_from.username)
user_url = '%s'%(receiving_user.id, receiving_user.username)
if reply:
notification.sub = "Approved request for assign of credits for %s"%task.title[:20]
notification.message = """ Request made by %s to assign %s pynts to %s for the task %s has been approved by %s
- %s if you want the view/assign pynts page of the task.
"""%(mentor_url, pynts, user_url, task_url, admin_url, credits_url)
+ %s if you want the view/assign pynts page of the task.
"""%(reviewer_url, pynts, user_url, task_url, admin_url, credits_url)
else:
notification.sub = "Rejected request for assign of credits for %s"%task.title[:20]
- notification.message = """ Request made by %s to assign %s pynts to %s for the task %s has been rejected by %s.
"""%(mentor_url, pynts, user_url, task_url, admin_url)
+ notification.message = """ Request made by %s to assign %s pynts to %s for the task %s has been rejected by %s.
"""%(reviewer_url, pynts, user_url, task_url, admin_url)
if remarks:
notification.remarks = remarks
notification.message += "Reason: %s
"%remarks
@@ -56,18 +56,18 @@ def create_notification(role, sent_to, sent_from=None, reply=None, task=None, re
notification.sent_from = sent_from
task_url= '%s'%(task.id, task.title)
- requested_mentor_url = '%s'%(requested_by.id, requested_by.username)
- new_mentor = sent_from
- new_mentor_url = '%s'%(new_mentor.id, new_mentor.username)
+ requested_reviewer_url = '%s'%(requested_by.id, requested_by.username)
+ new_reviewer = sent_from
+ new_reviewer_url = '%s'%(new_reviewer.id, new_reviewer.username)
if reply:
- notification.sub = "New mentor for the task %s"%task.title[:20]
- notification.message = "%s has accepted the request made by %s, asking him act as a mentor for the task %s
"%(new_mentor_url, requested_mentor_url, task_url)
- notification.message += "He can be contacted on %s"%new_mentor.email
+ notification.sub = "New reviewer for the task %s"%task.title[:20]
+ notification.message = "%s has accepted the request made by %s, asking him act as a reviewer for the task %s
"%(new_reviewer_url, requested_reviewer_url, task_url)
+ notification.message += "He can be contacted on %s"%new_reviewer.email
else:
- notification.sub = "%s rejected request to act as a mentor"%new_mentor.username
- notification.message = "%s has rejected your request asking him to act as a mentor for %s.
"%(new_mentor_url, task_url)
+ notification.sub = "%s rejected request to act as a reviewer"%new_reviewer.username
+ notification.message = "%s has rejected your request asking him to act as a reviewer for %s.
"%(new_reviewer_url, task_url)
if remarks:
notification.remarks = remarks
notification.message += "Remarks: %s
"%remarks
@@ -95,16 +95,16 @@ def create_notification(role, sent_to, sent_from=None, reply=None, task=None, re
elif role == "NT":
notification.task = task
- new_mentor = sent_to
- mentor_learn_url = 'learn more'
+ new_reviewer = sent_to
+ reviewer_learn_url = 'learn more'
task_url= '%s'%(task.id, task.title)
- notification.sub = "You are mentoring the task %s"%task.title[:20]
- notification.message = "You have accepted to act as a mentor%s for the task %s.
"%(mentor_learn_url, task_url)
- notification.message += " Here is a list of other mentors and their email addresses.