comparison rhodecode/controllers/admin/notifications.py @ 3745:7efc8dcc0dc4

usage of request.GET is now more consistent
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 13 Apr 2013 12:51:34 +0200
parents 260a7a01b054
children 13241a4075e9
comparison
equal deleted inserted replaced
3744:da36ba4afecf 3745:7efc8dcc0dc4
62 # url('notifications') 62 # url('notifications')
63 c.user = self.rhodecode_user 63 c.user = self.rhodecode_user
64 notif = NotificationModel().get_for_user(self.rhodecode_user.user_id, 64 notif = NotificationModel().get_for_user(self.rhodecode_user.user_id,
65 filter_=request.GET.getall('type')) 65 filter_=request.GET.getall('type'))
66 66
67 p = safe_int(request.params.get('page', 1), 1) 67 p = safe_int(request.GET.get('page', 1), 1)
68 c.notifications = Page(notif, page=p, items_per_page=10) 68 c.notifications = Page(notif, page=p, items_per_page=10)
69 c.pull_request_type = Notification.TYPE_PULL_REQUEST 69 c.pull_request_type = Notification.TYPE_PULL_REQUEST
70 c.comment_type = [Notification.TYPE_CHANGESET_COMMENT, 70 c.comment_type = [Notification.TYPE_CHANGESET_COMMENT,
71 Notification.TYPE_PULL_REQUEST_COMMENT] 71 Notification.TYPE_PULL_REQUEST_COMMENT]
72 72