Mercurial > kallithea
comparison rhodecode/controllers/search.py @ 3749:b950b884ab87 beta
auth decorators are not used anymore on __before__
- this will allow to create a whitelist of API enabled controller functions
- moved around functions with _ to beginning of the files to make it cleaner
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 15 Apr 2013 00:46:34 +0200 |
parents | 9d743ca9cede |
children | 13241a4075e9 |
comparison
equal
deleted
inserted
replaced
3748:9d743ca9cede | 3749:b950b884ab87 |
---|---|
46 log = logging.getLogger(__name__) | 46 log = logging.getLogger(__name__) |
47 | 47 |
48 | 48 |
49 class SearchController(BaseRepoController): | 49 class SearchController(BaseRepoController): |
50 | 50 |
51 @LoginRequired() | |
52 def __before__(self): | 51 def __before__(self): |
53 super(SearchController, self).__before__() | 52 super(SearchController, self).__before__() |
54 | 53 |
54 @LoginRequired() | |
55 def index(self, repo_name=None): | 55 def index(self, repo_name=None): |
56 c.repo_name = repo_name | 56 c.repo_name = repo_name |
57 c.formated_results = [] | 57 c.formated_results = [] |
58 c.runtime = '' | 58 c.runtime = '' |
59 c.cur_query = request.GET.get('q', None) | 59 c.cur_query = request.GET.get('q', None) |