#NEWLINE# @ defer . inlineCallbacks #NEWLINE# def on_POST( self , request ) : #NEWLINE# #INDENT# requester = ( yield self . auth . get_user_by_req ( request ) ) #NEWLINE# content = parse_json_object_from_request ( request ) #NEWLINE# batch = request . args . get ( 'next_batch' , [ None ] ) [ 0 ] #NEWLINE# results = ( yield self . handlers . search_handler . search ( requester . user , content , batch ) ) #NEWLINE# defer . returnValue ( ( 200 , results ) )