#NEWLINE# def take_action( self , parsed_args ) : #NEWLINE# #INDENT# session = self . app . get_db_session ( ) #NEWLINE# query = session . query ( req_models . Requirement ) . join ( models . Project ) . filter ( req_models . Requirement . name . ilike ( parsed_args . requirement ) ) . order_by ( models . Project . name ) #NEWLINE# return ( ( 'Name' , 'Spec' , 'File' ) , ( ( session . project . name , r . line . content . strip ( ) , r . line . file . name ) for r in query . all ( ) ) )