Mercurial > public > src > rhodecode
comparison 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 |
comparison
equal
deleted
inserted
replaced
244:782f0692b29c | 245:a83a1799480c |
---|---|
1 from formencode import htmlfill | 1 from formencode import htmlfill |
2 from pylons import request, response, session, tmpl_context as c, url, \ | 2 from pylons import request, session, tmpl_context as c, url |
3 app_globals as g | 3 from pylons.controllers.util import abort, redirect |
4 from pylons.i18n.translation import _ | 4 from pylons.i18n.translation import _ |
5 from pylons_app.lib import helpers as h | 5 from pylons_app.lib import helpers as h |
6 from pylons.controllers.util import abort, redirect | |
7 from pylons_app.lib.auth import LoginRequired, CheckPermissionAll | 6 from pylons_app.lib.auth import LoginRequired, CheckPermissionAll |
8 from pylons_app.lib.base import BaseController, render | 7 from pylons_app.lib.base import BaseController, render |
9 from pylons_app.model.db import User, UserLog | 8 from pylons_app.model.db import User, UserLog |
10 from pylons_app.model.forms import UserForm | 9 from pylons_app.model.forms import UserForm |
11 from pylons_app.model.user_model import UserModel | 10 from pylons_app.model.user_model import UserModel |
12 import formencode | 11 import formencode |
13 import logging | 12 import logging |
14 | |
15 | |
16 | 13 |
17 log = logging.getLogger(__name__) | 14 log = logging.getLogger(__name__) |
18 | 15 |
19 class UsersController(BaseController): | 16 class UsersController(BaseController): |
20 """REST Controller styled on the Atom Publishing Protocol""" | 17 """REST Controller styled on the Atom Publishing Protocol""" |