@handle_response_format
@treeio_login_required
@_process_mass_form
def index_weblinks(request, response_format='html'):
 if request.GET:
  query = _get_direct_filter_query(request.GET)
  links = Object.filter_by_request(request, WebLink.objects.filter(query).order_by('-last_updated'))
 else:
  links = Object.filter_by_request(request, WebLink.objects.order_by('-last_updated'))
 filters = FilterForm(request.user.profile, 'title', request.GET)
 context = _get_default_context(request)
 context.update({'filters': filters, 'links': links})
 return render_to_response('documents/index_weblinks', context, context_instance=RequestContext(request), response_format=response_format)

@ handle_response_format @ treeio_login_required @ _process_mass_form def index_weblinks ( request , response_format = 'html' ) : if request . GET : query = _get_direct_filter_query ( request . GET ) links = Object . filter_by_request ( request , WebLink . objects . filter ( query ) . order_by ( '-last_updated' ) ) else : links = Object . filter_by_request ( request , WebLink . objects . order_by ( '-last_updated' ) ) filters = FilterForm ( request . user . profile , 'title' , request . GET ) context = _get_default_context ( request ) context . update ( { 'filters' : filters , 'links' : links } ) return render_to_response ( 'documents/index_weblinks' , context , context_instance = RequestContext ( request ) , response_format = response_format )
index_weblinks page: displays all weblinks .