#NEWLINE# def get_by_name( self , flavor_name ) : #NEWLINE# #INDENT# 'Get a list of flavors named ``flavor_name``\n\n        :param flavor_name: name of the flavors to retrieve\n        ' #NEWLINE# flavors = [ ] #NEWLINE# for flavor in self . list ( ) : #NEWLINE# #INDENT# if ( flavor . name == flavor_name ) : #NEWLINE# #INDENT# flavors . append ( flavor ) #NEWLINE# #UNINDENT# #UNINDENT# return flavors