예제 #1
0
def send_review_reply(user, reply):
    
    review = reply.base_reply_to
    review_request = review.review_request
    
    if not review_request.public:
        return

    subject = "Reply To: \"%s\""%review_request.summary
    message_body = "%s by %s at %s"%(subject, reply.user.username, get_url_for_review(review_request))
    send_review_message(user, review_request, email.harvest_people_from_review_request(review_request), subject, message_body)
예제 #2
0
def send_review(user, review_request, changedesc):
    # If the review request is not yet public or has been discarded, don't send
    # any mail.
    if not review_request.public or review_request.status == 'D':
        return
    
    subject = "Review Request: \"%s\""%review_request.summary
    if review_request.email_message_id:
        # Fancy quoted "replies"
        subject = "Re: " + subject
        reply_message_id = review_request.email_message_id
        extra_recipients = email.harvest_people_from_review_request(review_request)
    else:
        extra_recipients = None

    message_body = "%s by %s at %s"%(subject, review_request.submitter.username, get_url_for_review(review_request))
    send_review_message(user, review_request, extra_recipients, subject, message_body)