Mercurial > public > src > rhodecode
diff pylons_app/controllers/hg.py @ 191:b68b2246e5a6
Authenticated controller with LoginRequired decorator, and cleaned __before__ (used in baseController now). fixed User for clone url with logged in session user.
Removed login form from admin.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 22 May 2010 01:47:07 +0200 |
parents | 8e01265fb586 |
children | 4cf00c939e88 |
line wrap: on
line diff
--- a/pylons_app/controllers/hg.py Sat May 22 01:43:42 2010 +0200 +++ b/pylons_app/controllers/hg.py Sat May 22 01:47:07 2010 +0200 @@ -6,13 +6,14 @@ from pylons_app.lib.base import BaseController, render from pylons_app.lib.utils import get_repo_slug from pylons_app.model.hg_model import HgModel +from pylons_app.lib.auth import LoginRequired log = logging.getLogger(__name__) class HgController(BaseController): + @LoginRequired() def __before__(self): - c.repos_prefix = config['repos_name'] - c.repo_name = get_repo_slug(request) + super(HgController, self).__before__() def index(self): c.current_sort = request.GET.get('sort', 'name')