Example #1
0
 def __init__(self, *args, **kwargs):
     Page.__init__(self, *args, **kwargs)
     SearchView.__init__(self, *args, **kwargs)
     try:
         self._set_path_and_page(*args, **kwargs)
     except Http404:
         self.page = None
     self.form_class = forms.SiteSearchForm
Example #2
0
 def __init__(self):
     SearchView.__init__(self, form_class=ProjectSearchForm, template='docs/search.html')
Example #3
0
 def __init__(self):
     SearchView.__init__(self, form_class=ProjectSearchForm,
                         template='sphinxdoc/search.html')
Example #4
0
 def __init__(self, template=None, load_all=True, form_class=None, searchqueryset=None, context_class=RequestContext, results_per_page=None):
     record_searchQuerySet = SearchQuerySet()
     template = "p4l/home.html"
     results_per_page= settings.NB_RECORDS_BY_PAGE
     form_class = RecordSearchForm
     SearchView.__init__(self, template=template, load_all=False, form_class=form_class, searchqueryset=record_searchQuerySet, context_class=context_class, results_per_page=results_per_page)