taskapp/utilities/notification.py
changeset 147 8c1ed28d04d2
parent 145 0c97a02b9bdb
child 150 604808d27483
equal deleted inserted replaced
146:047473d49b25 147:8c1ed28d04d2
    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 />"%(user_url, role_rights)
    85             notification.message = "%s has rejected your request asking him to act as %s %s.<br />"%(user_url, a_or_an, 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