Mercurial > public > src > rhodecode
diff pylons_app/controllers/users.py @ 245:a83a1799480c
Reimplemented way of caching repos list, hg model now get's repos objects right from cached dict, this way we skipp creating instances of MercurialRepository and gain performance. Some import cleanup
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 03 Jun 2010 00:04:48 +0200 |
parents | b18f89d6d17f |
children | 3782a6d698af |
line wrap: on
line diff
--- a/pylons_app/controllers/users.py Tue Jun 01 22:19:03 2010 +0200 +++ b/pylons_app/controllers/users.py Thu Jun 03 00:04:48 2010 +0200 @@ -1,9 +1,8 @@ from formencode import htmlfill -from pylons import request, response, session, tmpl_context as c, url, \ - app_globals as g +from pylons import request, session, tmpl_context as c, url +from pylons.controllers.util import abort, redirect from pylons.i18n.translation import _ -from pylons_app.lib import helpers as h -from pylons.controllers.util import abort, redirect +from pylons_app.lib import helpers as h from pylons_app.lib.auth import LoginRequired, CheckPermissionAll from pylons_app.lib.base import BaseController, render from pylons_app.model.db import User, UserLog @@ -12,8 +11,6 @@ import formencode import logging - - log = logging.getLogger(__name__) class UsersController(BaseController):