comparison rhodecode/model/notification.py @ 2799:493646d3146f beta

Nicer email notifications about pull-request
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 04 Sep 2012 02:18:59 +0200
parents 3fdf7c3be2c9
children 0a623ec24b62
comparison
equal deleted inserted replaced
2798:091e99b29fd4 2799:493646d3146f
253 253
254 self.email_types = { 254 self.email_types = {
255 self.TYPE_CHANGESET_COMMENT: 'email_templates/changeset_comment.html', 255 self.TYPE_CHANGESET_COMMENT: 'email_templates/changeset_comment.html',
256 self.TYPE_PASSWORD_RESET: 'email_templates/password_reset.html', 256 self.TYPE_PASSWORD_RESET: 'email_templates/password_reset.html',
257 self.TYPE_REGISTRATION: 'email_templates/registration.html', 257 self.TYPE_REGISTRATION: 'email_templates/registration.html',
258 self.TYPE_DEFAULT: 'email_templates/default.html' 258 self.TYPE_DEFAULT: 'email_templates/default.html',
259 self.TYPE_PULL_REQUEST: 'email_templates/pull_request.html',
259 } 260 }
260 261
261 def get_email_tmpl(self, type_, **kwargs): 262 def get_email_tmpl(self, type_, **kwargs):
262 """ 263 """
263 return generated template for email based on given type 264 return generated template for email based on given type