Mercurial > kallithea
diff rhodecode/model/comment.py @ 1717:7ff304d3028f beta
Notification fixes
- email prefix added to .ini files
- html templates emails
- rewrote email system to use some parts from pyramid_mailer
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 25 Nov 2011 17:41:42 +0200 |
parents | 7d1fc253549e |
children | 48d4fcf04a29 |
line wrap: on
line diff
--- a/rhodecode/model/comment.py Wed Nov 23 22:46:14 2011 +0200 +++ b/rhodecode/model/comment.py Fri Nov 25 17:41:42 2011 +0200 @@ -87,7 +87,8 @@ {'commit_desc':desc, 'line':line}, h.url('changeset_home', repo_name=repo.repo_name, revision=revision, - anchor='comment-%s' % comment.comment_id + anchor='comment-%s' % comment.comment_id, + qualified=True, ) ) body = text @@ -99,11 +100,13 @@ body=body, recipients=recipients, type_=Notification.TYPE_CHANGESET_COMMENT) - mention_recipients = set(self._extract_mentions(body)).difference(recipients) + mention_recipients = set(self._extract_mentions(body))\ + .difference(recipients) if mention_recipients: subj = _('[Mention]') + ' ' + subj NotificationModel().create(created_by=user_id, subject=subj, - body = body, recipients = mention_recipients, + body=body, + recipients=mention_recipients, type_=Notification.TYPE_CHANGESET_COMMENT) self.sa.commit()