taskapp/utilities/notification.py
changeset 145 0c97a02b9bdb
parent 144 581ad20b8c39
child 147 8c1ed28d04d2
equal deleted inserted replaced
144:581ad20b8c39 145:0c97a02b9bdb
    80         if reply:
    80         if reply:
    81             notification.sub = "New %s for the site"%role_rights
    81             notification.sub = "New %s for the site"%role_rights
    82             notification.message = "%s has accepted request made by %s asking him to act as %s %s for the website.<br />"%(user_url, requested_by_url, a_or_an, role_rights)
    82             notification.message = "%s has accepted request made by %s asking him to act as %s %s for the website.<br />"%(user_url, requested_by_url, a_or_an, role_rights)
    83         else:
    83         else:
    84             notification.sub = "Rejected your request to act as %s"%role_rights
    84             notification.sub = "Rejected your request to act as %s"%role_rights
    85             notification.message = "%s has rejected your request asking him to act as a %s.<br />"%(new_mentor_url, task_url)
    85             notification.message = "%s has rejected your request asking him to act as a %s.<br />"%(user_url, role_rights)
    86             if remarks:
    86             if remarks:
    87                 notification.message += "Remarks: %s<br />"%remarks
    87                 notification.message += "Remarks: %s<br />"%remarks
    88 
    88 
    89     elif role == "NT":
    89     elif role == "NT":
    90 
    90