~ubuntu-branches/ubuntu/lucid/loggerhead/lucid-security

« back to all changes in this revision

Viewing changes to loggerhead/controllers/search_ui.py

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2008-12-09 01:04:39 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20081209010439-67a169sw58q1nru3
Tags: 1.10-1
* New upstream release.
* Stop writing home directory to pid file. (Closes: #507002)
* Use objlib from bzr. (Closes: #506999)
* Fix dependency on python-paste.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
    template_path = 'loggerhead.templates.search'
30
30
 
31
 
    def get_values(self, history, revid, path, kwargs, response):
 
31
    def get_values(self, path, kwargs, response):
32
32
        """
33
33
        Default method called from the search box as /search URL
34
34
 
38
38
        terms = []
39
39
        query = kwargs['query']
40
40
        if len(query) > 0:
41
 
            terms = search.search_revisions(history._branch, query, True)
 
41
            terms = search.search_revisions(self._branch.branch, query, True)
42
42
            if terms is not None:
43
43
                terms = [term[0] for term in terms]
44
44
            else: