comparison rhodecode/controllers/admin/notifications.py @ 1723:64e91067b996 beta

- refactoring to overcome poor usage of global pylons config - db transaction fixes - fixed tests - garden
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 26 Nov 2011 02:16:21 +0200
parents 54687aa00724
children 4a5b93b3bcdd
comparison
equal deleted inserted replaced
1722:e7eef7a1db6a 1723:64e91067b996
1 import logging 1 import logging
2 import traceback 2 import traceback
3 3
4 from pylons import tmpl_context as c, url 4 from pylons import tmpl_context as c, url
5 from pylons.controllers.util import redirect
5 6
6 from rhodecode.lib.base import BaseController, render 7 from rhodecode.lib.base import BaseController, render
7 from rhodecode.model.db import Notification 8 from rhodecode.model.db import Notification
8 9
9 from rhodecode.model.notification import NotificationModel 10 from rhodecode.model.notification import NotificationModel
10 from rhodecode.lib.auth import LoginRequired 11 from rhodecode.lib.auth import LoginRequired
11 from rhodecode.lib import helpers as h 12 from rhodecode.lib import helpers as h
12 from rhodecode.model.meta import Session 13 from rhodecode.model.meta import Session
13 from pylons.controllers.util import redirect 14
14 15
15 log = logging.getLogger(__name__) 16 log = logging.getLogger(__name__)
16 17
17 class NotificationsController(BaseController): 18 class NotificationsController(BaseController):
18 """REST Controller styled on the Atom Publishing Protocol""" 19 """REST Controller styled on the Atom Publishing Protocol"""