aboutsummaryrefslogtreecommitdiff
path: root/rhodecode/model/comment.py
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2012-09-05 01:39:13 +0200
committerMarcin Kuzminski <marcin@python-works.com>2012-09-05 01:39:13 +0200
commit15473ec7d41a2a3475a1ac50e63a6e348b8a870d (patch)
tree6d7af2c386324831f6b73917f68e95b8c8976b22 /rhodecode/model/comment.py
parentcbed74d1f9abbc4f1b43f65239dfbc812a9bf826 (diff)
fix missing email_kwargs
--HG-- branch : beta
Diffstat (limited to 'rhodecode/model/comment.py')
-rw-r--r--rhodecode/model/comment.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/rhodecode/model/comment.py b/rhodecode/model/comment.py
index d81aad6b..2d6b990f 100644
--- a/rhodecode/model/comment.py
+++ b/rhodecode/model/comment.py
@@ -123,6 +123,9 @@ class ChangesetCommentsModel(BaseModel):
recipients = ChangesetComment.get_users(revision=revision)
# add changeset author if it's in rhodecode system
recipients += [User.get_by_email(author_email)]
+ email_kwargs = {
+ 'status_change': status_change,
+ }
#pull request
elif pull_request:
_url = h.url('pullrequest_show',
@@ -147,7 +150,7 @@ class ChangesetCommentsModel(BaseModel):
recipients += [x.user for x in pull_request.reviewers]
#set some variables for email notification
- kwargs = {
+ email_kwargs = {
'pr_id': pull_request.pull_request_id,
'status_change': status_change,
'pr_comment_url': _url,
@@ -160,7 +163,7 @@ class ChangesetCommentsModel(BaseModel):
NotificationModel().create(
created_by=user, subject=subj, body=body,
recipients=recipients, type_=notification_type,
- email_kwargs=kwargs
+ email_kwargs=email_kwargs
)
mention_recipients = set(self._extract_mentions(body))\