#NEWLINE# def take_action( self , parsed_args ) : #NEWLINE# #INDENT# session = self . app . get_db_session ( ) #NEWLINE# used_requirements = session . query ( distinct ( req_models . Requirement . name ) ) #NEWLINE# query = session . query ( req_models . GlobalRequirement ) . filter ( req_models . GlobalRequirement . name . notin_ ( used_requirements ) ) . order_by ( req_models . GlobalRequirement . name ) #NEWLINE# return ( ( 'Name' , 'Spec' ) , ( ( r . name , r . line . content . strip ( ) ) for r in query . all ( ) ) )