Mercurial > kallithea
comparison rhodecode/model/notification.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 | 74f2910f7ad9 |
children | fd0a822481ec |
comparison
equal
deleted
inserted
replaced
2433:74f2910f7ad9 | 2434:f29469677319 |
---|---|
224 class EmailNotificationModel(BaseModel): | 224 class EmailNotificationModel(BaseModel): |
225 | 225 |
226 TYPE_CHANGESET_COMMENT = Notification.TYPE_CHANGESET_COMMENT | 226 TYPE_CHANGESET_COMMENT = Notification.TYPE_CHANGESET_COMMENT |
227 TYPE_PASSWORD_RESET = 'passoword_link' | 227 TYPE_PASSWORD_RESET = 'passoword_link' |
228 TYPE_REGISTRATION = Notification.TYPE_REGISTRATION | 228 TYPE_REGISTRATION = Notification.TYPE_REGISTRATION |
229 TYPE_PULL_REQUEST = Notification.TYPE_PULL_REQUEST | |
229 TYPE_DEFAULT = 'default' | 230 TYPE_DEFAULT = 'default' |
230 | 231 |
231 def __init__(self): | 232 def __init__(self): |
232 self._template_root = rhodecode.CONFIG['pylons.paths']['templates'][0] | 233 self._template_root = rhodecode.CONFIG['pylons.paths']['templates'][0] |
233 self._tmpl_lookup = rhodecode.CONFIG['pylons.app_globals'].mako_lookup | 234 self._tmpl_lookup = rhodecode.CONFIG['pylons.app_globals'].mako_lookup |