#NEWLINE# def get_summaries( ignore_hidden = True , ordered = True ) : #NEWLINE# #INDENT# 'Yields sorted (command name, command summary) tuples.' #NEWLINE# if ordered : #NEWLINE# #INDENT# cmditems = _sort_commands ( commands_dict , commands_order ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# cmditems = commands_dict . items ( ) #NEWLINE# #UNINDENT# for ( name , command_class ) in cmditems : #NEWLINE# #INDENT# if ( ignore_hidden and command_class . hidden ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# ( yield ( name , command_class . summary ) )