Did I find the right examples for you? yes no

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/s/u/Sumatra-0.6.0/sumatra/web/views.py   Sumatra(Download)
        if ajaxTempOb.form.is_valid():
            ajaxTempOb.filter_search(request.POST)  # taking into consideration the search inquiry
            ajaxTempOb.init_object_list(ajaxTempOb.page)  # taking into consideration pagination
            # content.html is a part of record_list.html
            return render_to_response('content.html', ajaxTempOb.getDict())
def list_tags(request, project):
    if request.method == 'POST':  # user define a tag name (by clicking it)
        ajaxTempOb = AjaxTemplate(project, request.POST)
        ajaxTempOb.filter_search(request.POST)
        ajaxTempOb.init_object_list()
def search(request, project):
    ajaxTempOb = AjaxTemplate(project, request.POST)
    if request.POST.has_key('fulltext_inquiry'):  # using the input #search_subnav
        ajaxTempOb.filter_search(request.POST)
        ajaxTempOb.init_object_list(ajaxTempOb.page)
        return render_to_response('content.html', ajaxTempOb.getDict())
    else:  # using the form
        if ajaxTempOb.form.is_valid():
            ajaxTempOb.filter_search(ajaxTempOb.form.cleaned_data)  # taking into consideration the search form
            ajaxTempOb.init_object_list(ajaxTempOb.page)  # taking into consideration pagination
                ajaxTempOb.settings[key] = None
    ajaxTempOb.save_settings()
    ajaxTempOb.init_object_list(1)
    return render_to_response('content.html', ajaxTempOb.getDict())