Mercurial > kallithea
diff rhodecode/model/notification.py @ 1800:6c86c987cf93 beta
pep8ify
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 21 Dec 2011 02:56:39 +0200 |
parents | 2aee0dc1784e |
children | cf51bbfb120e |
line wrap: on
line diff
--- a/rhodecode/model/notification.py Wed Dec 21 02:26:15 2011 +0200 +++ b/rhodecode/model/notification.py Wed Dec 21 02:56:39 2011 +0200 @@ -4,8 +4,8 @@ ~~~~~~~~~~~~~~ Model for notifications - - + + :created_on: Nov 20, 2011 :author: marcink :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> @@ -61,9 +61,9 @@ type_=Notification.TYPE_MESSAGE, with_email=True, email_kwargs={}): """ - + Creates notification of given type - + :param created_by: int, str or User instance. User who created this notification :param subject: @@ -104,7 +104,7 @@ email_subject = NotificationModel().make_description(notif, False) type_ = type_ email_body = body - kwargs = {'subject':subject, 'body':h.rst_w_mentions(body)} + kwargs = {'subject': subject, 'body': h.rst_w_mentions(body)} kwargs.update(email_kwargs) email_body_html = EmailNotificationModel()\ .get_email_tmpl(type_, **kwargs)