Mercurial > kallithea
changeset 2646:3013b753cbed beta
code garden
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 21 Jul 2012 14:13:09 +0200 |
parents | 29dfc6581458 |
children | bdca58f60987 |
files | rhodecode/controllers/search.py |
diffstat | 1 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/controllers/search.py Sat Jul 21 14:10:37 2012 +0200 +++ b/rhodecode/controllers/search.py Sat Jul 21 14:13:09 2012 +0200 @@ -3,7 +3,7 @@ rhodecode.controllers.search ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - Search controller for rhodecode + Search controller for RhodeCode :created_on: Aug 7, 2010 :author: marcink @@ -30,7 +30,8 @@ from rhodecode.lib.auth import LoginRequired from rhodecode.lib.base import BaseController, render -from rhodecode.lib.indexers import CHGSETS_SCHEMA, SCHEMA, CHGSET_IDX_NAME, IDX_NAME, WhooshResultWrapper +from rhodecode.lib.indexers import CHGSETS_SCHEMA, SCHEMA, CHGSET_IDX_NAME, \ + IDX_NAME, WhooshResultWrapper from webhelpers.paginate import Page from webhelpers.util import update_params @@ -58,20 +59,20 @@ c.cur_search = search_type = {'content': 'content', 'commit': 'message', 'path': 'path', - 'repository': 'repository'}\ - .get(c.cur_type, 'content') + 'repository': 'repository' + }.get(c.cur_type, 'content') index_name = { 'content': IDX_NAME, 'commit': CHGSET_IDX_NAME, - 'path': IDX_NAME}\ - .get(c.cur_type, IDX_NAME) + 'path': IDX_NAME + }.get(c.cur_type, IDX_NAME) schema_defn = { 'content': SCHEMA, 'commit': CHGSETS_SCHEMA, - 'path': SCHEMA}\ - .get(c.cur_type, SCHEMA) + 'path': SCHEMA + }.get(c.cur_type, SCHEMA) log.debug('IDX: %s' % index_name) log.debug('SCHEMA: %s' % schema_defn) @@ -138,6 +139,5 @@ log.error(traceback.format_exc()) c.runtime = _('An error occurred during this search operation') - # Return a rendered template return render('/search/search.html')