#NEWLINE# def get_mapping_types( mapping_types = None ) : #NEWLINE# #INDENT# 'Returns a list of MappingTypes' #NEWLINE# if ( mapping_types is None ) : #NEWLINE# #INDENT# values = _search_mapping_types . values ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# values = [ _search_mapping_types [ name ] for name in mapping_types ] #NEWLINE# #UNINDENT# values . sort ( key = ( lambda cls : cls . get_mapping_type_name ( ) ) ) #NEWLINE# return values