Mercurial > kallithea
comparison kallithea/controllers/search.py @ 6553:e9ac5698281d
tg: minimize future diff by some mocking and replacing some pylons imports with tg
No actual tg dependency yet, just a temporary hack faking tg as an alias for
pylons.
Based on work by Alessandro Molina.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sat, 24 Dec 2016 01:27:47 +0100 |
parents | 8b7c0ef62427 |
children | 2f9313074853 |
comparison
equal
deleted
inserted
replaced
6552:15a12f2a47b4 | 6553:e9ac5698281d |
---|---|
26 """ | 26 """ |
27 | 27 |
28 import logging | 28 import logging |
29 import traceback | 29 import traceback |
30 import urllib | 30 import urllib |
31 from pylons.i18n.translation import _ | 31 from tg.i18n import ugettext as _ |
32 from pylons import request, config, tmpl_context as c | 32 from tg import request, config, tmpl_context as c |
33 | 33 |
34 from whoosh.index import open_dir, EmptyIndexError | 34 from whoosh.index import open_dir, EmptyIndexError |
35 from whoosh.qparser import QueryParser, QueryParserError | 35 from whoosh.qparser import QueryParser, QueryParserError |
36 from whoosh.query import Phrase, Prefix | 36 from whoosh.query import Phrase, Prefix |
37 from webhelpers.util import update_params | 37 from webhelpers.util import update_params |