#NEWLINE# def list_status( self , status ) : #NEWLINE# #INDENT# '\n        Print out the keys under a named status\n\n        :param str status: A string indicating which set of keys to return\n        ' #NEWLINE# keys = self . key . list_keys ( ) #NEWLINE# if status . startswith ( 'acc' ) : #NEWLINE# #INDENT# salt . output . display_output ( { #NEWLINE# #INDENT# self . key . ACC : keys [ self . key . ACC ] , #NEWLINE# #UNINDENT# } , 'key' , self . opts ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if status . startswith ( ( 'pre' , 'un' ) ) : #NEWLINE# #INDENT# salt . output . display_output ( { #NEWLINE# #INDENT# self . key . PEND : keys [ self . key . PEND ] , #NEWLINE# #UNINDENT# } , 'key' , self . opts ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if status . startswith ( 'rej' ) : #NEWLINE# #INDENT# salt . output . display_output ( { #NEWLINE# #INDENT# self . key . REJ : keys [ self . key . REJ ] , #NEWLINE# #UNINDENT# } , 'key' , self . opts ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if status . startswith ( 'den' ) : #NEWLINE# #INDENT# if self . key . DEN : #NEWLINE# #INDENT# salt . output . display_output ( { #NEWLINE# #INDENT# keys . key . DEN : keys [ self . key . DEN ] , #NEWLINE# #UNINDENT# } , 'key' , self . opts ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if status . startswith ( 'all' ) : #NEWLINE# #INDENT# self . list_all ( )