Mercurial > kallithea
comparison rhodecode/model/notification.py @ 3270:81397bd3e77f beta
fix a couple of typos
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 30 Jan 2013 01:46:19 +0100 |
parents | 09757b15ce7c |
children | 043d3827cd88 |
comparison
equal
deleted
inserted
replaced
3269:7818c8c31c4c | 3270:81397bd3e77f |
---|---|
70 :param email_kwargs: additional dict to pass as args to email template | 70 :param email_kwargs: additional dict to pass as args to email template |
71 """ | 71 """ |
72 from rhodecode.lib.celerylib import tasks, run_task | 72 from rhodecode.lib.celerylib import tasks, run_task |
73 | 73 |
74 if recipients and not getattr(recipients, '__iter__', False): | 74 if recipients and not getattr(recipients, '__iter__', False): |
75 raise Exception('recipients must be a list of iterable') | 75 raise Exception('recipients must be a list or iterable') |
76 | 76 |
77 created_by_obj = self._get_user(created_by) | 77 created_by_obj = self._get_user(created_by) |
78 | 78 |
79 if recipients: | 79 if recipients: |
80 recipients_objs = [] | 80 recipients_objs = [] |
240 | 240 |
241 | 241 |
242 class EmailNotificationModel(BaseModel): | 242 class EmailNotificationModel(BaseModel): |
243 | 243 |
244 TYPE_CHANGESET_COMMENT = Notification.TYPE_CHANGESET_COMMENT | 244 TYPE_CHANGESET_COMMENT = Notification.TYPE_CHANGESET_COMMENT |
245 TYPE_PASSWORD_RESET = 'passoword_link' | 245 TYPE_PASSWORD_RESET = 'password_link' |
246 TYPE_REGISTRATION = Notification.TYPE_REGISTRATION | 246 TYPE_REGISTRATION = Notification.TYPE_REGISTRATION |
247 TYPE_PULL_REQUEST = Notification.TYPE_PULL_REQUEST | 247 TYPE_PULL_REQUEST = Notification.TYPE_PULL_REQUEST |
248 TYPE_PULL_REQUEST_COMMENT = Notification.TYPE_PULL_REQUEST_COMMENT | 248 TYPE_PULL_REQUEST_COMMENT = Notification.TYPE_PULL_REQUEST_COMMENT |
249 TYPE_DEFAULT = 'default' | 249 TYPE_DEFAULT = 'default' |
250 | 250 |