comparison rhodecode/model/comment.py @ 2434:f29469677319 codereview

Added basic models for saving open pull requests - added pull-request models - added pull-requests notifications into inbox
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 10 Jun 2012 02:08:10 +0200
parents 91fae60bf2b6
children ad19dfcdb1cc
comparison
equal deleted inserted replaced
2433:74f2910f7ad9 2434:f29469677319
116 if mention_recipients: 116 if mention_recipients:
117 subj = _('[Mention]') + ' ' + subj 117 subj = _('[Mention]') + ' ' + subj
118 NotificationModel().create( 118 NotificationModel().create(
119 created_by=user_id, subject=subj, body=body, 119 created_by=user_id, subject=subj, body=body,
120 recipients=mention_recipients, 120 recipients=mention_recipients,
121 type_=Notification.TYPE_CHANGESET_COMMENT 121 type_=Notification.TYPE_CHANGESET_COMMENT,
122 email_kwargs={'status_change': status_change}
122 ) 123 )
123 124
124 return comment 125 return comment
125 126
126 def delete(self, comment): 127 def delete(self, comment):