@handle_response_format
@treeio_login_required
@_process_mass_form
def index_sent(request, response_format='html'):
 query = (Q(reply_to__isnull=True) & Q(author=request.user.profile.get_contact()))
 if request.GET:
  query = (query & _get_filter_query(request.GET))
  objects = Object.filter_by_request(request, Message.objects.filter(query))
 else:
  objects = Object.filter_by_request(request, Message.objects.filter(query))
 filters = FilterForm(request.user.profile, 'title', request.GET)
 context = _get_default_context(request)
 context.update({'filters': filters, 'messages': objects})
 return render_to_response('messaging/index_sent', context, context_instance=RequestContext(request), response_format=response_format)

@ handle_response_format @ treeio_login_required @ _process_mass_form def index_sent ( request , response_format = 'html' ) : query = ( Q ( reply_to__isnull = True ) & Q ( author = request . user . profile . get_contact ( ) ) ) if request . GET : query = ( query & _get_filter_query ( request . GET ) ) objects = Object . filter_by_request ( request , Message . objects . filter ( query ) ) else : objects = Object . filter_by_request ( request , Message . objects . filter ( query ) ) filters = FilterForm ( request . user . profile , 'title' , request . GET ) context = _get_default_context ( request ) context . update ( { 'filters' : filters , 'messages' : objects } ) return render_to_response ( 'messaging/index_sent' , context , context_instance = RequestContext ( request ) , response_format = response_format )
sent messages index page .