def build_review_inform_title(replyer_id, review_id): replyer = User.get_user_by_id(replyer_id) review = Review.get_review(review_id) inform_title = "<a href=" + url_for( 'user', user_abbr=replyer['Abbr']) + ">" + replyer[ 'Name'] + "</a> 在评论 " + "<a href=" + url_for( 'single_review', review_id=review_id ) + ">" + review['Title'] + "</a>" + " 中回复了你" return inform_title
def build_topic_inform_title(replyer_id, topic_id): replyer = User.get_user_by_id(replyer_id) topic = Topic.get_topic(topic_id) inform_title = "<a href=" + url_for( 'user', user_abbr=replyer['Abbr']) + ">" + replyer[ 'Name'] + "</a> 在话题 " + "<a href=" + url_for( 'single_topic', topic_id=topic_id ) + ">" + topic['Title'] + "</a>" + " 中回复了你" return inform_title
def build_review_inform_title(replyer_id, review_id): replyer = User.get_user_by_id(replyer_id) review = Review.get_review(review_id) inform_title = "<a href=" + url_for('people', user_abbr=replyer['Abbr']) + ">" + replyer['Name'] + "</a> 在评论 " + "<a href=" + url_for('single_review', review_id=review_id) + ">" + review['Title'] + "</a>" + " 中回复了你" return inform_title
def build_topic_inform_title(replyer_id, topic_id): replyer = User.get_user_by_id(replyer_id) topic = Topic.get_topic(topic_id) inform_title = "<a href=" + url_for('people', user_abbr=replyer['Abbr']) + ">" + replyer['Name'] + "</a> 在话题 " + "<a href=" + url_for('single_topic', topic_id=topic_id) + ">" + topic['Title'] + "</a>" + " 中回复了你" return inform_title