/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/controllers/search_ui.py

MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
#
17
17
 
18
 
import turbogears
19
 
from cherrypy import InternalError
20
 
 
 
18
from paste.httpexceptions import HTTPServerError
21
19
from loggerhead import history
22
20
from loggerhead import util
23
 
from loggerhead.templatefunctions import templatefunctions
 
21
from loggerhead.controllers import TemplatedBranchView
24
22
from loggerhead import search
25
23
 
26
24
 
27
 
class SearchUI(object):
 
25
class SearchUI(TemplatedBranchView):
28
26
    """
29
27
    
30
28
    Class to output progressive search result terms.
31
29
    """
32
 
    
33
 
    def __init__(self, branch):
34
 
        self._branch = branch
35
 
        self.log = branch.log
36
 
 
37
 
    @util.strip_whitespace
38
 
    @turbogears.expose(html='zpt:loggerhead.templates.search')
39
 
    
40
 
    def default(self, *args, **kwargs):
 
30
 
 
31
    template_path = 'loggerhead.templates.search'
 
32
 
 
33
    def get_values(self, *args, **kwargs):
41
34
        """
42
35
        Default method called from the search box as /search URL
43
36