Mercurial > kallithea
diff rhodecode/controllers/admin/notifications.py @ 3776:13241a4075e9 beta
Unified the paginators for pylons and YUI.
- YUI based paginators now behave more like the ones generated with pylons
- introduced new custom pylons paginator for customizations needed to unify both
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 22 Apr 2013 14:11:40 +0200 |
parents | 9d743ca9cede |
children | ffd45b185016 |
line wrap: on
line diff
--- a/rhodecode/controllers/admin/notifications.py Sun Apr 21 23:37:56 2013 +0200 +++ b/rhodecode/controllers/admin/notifications.py Mon Apr 22 14:11:40 2013 +0200 @@ -30,15 +30,13 @@ from pylons import tmpl_context as c, url from pylons.controllers.util import redirect, abort -from webhelpers.paginate import Page - +from rhodecode.model.db import Notification +from rhodecode.model.notification import NotificationModel +from rhodecode.model.meta import Session +from rhodecode.lib.auth import LoginRequired, NotAnonymous from rhodecode.lib.base import BaseController, render -from rhodecode.model.db import Notification - -from rhodecode.model.notification import NotificationModel -from rhodecode.lib.auth import LoginRequired, NotAnonymous from rhodecode.lib import helpers as h -from rhodecode.model.meta import Session +from rhodecode.lib.helpers import Page from rhodecode.lib.utils2 import safe_int