#NEWLINE# def _get_flavors( self , req , is_detail = True ) : #NEWLINE# #INDENT# 'Helper function that returns a list of flavor dicts.' #NEWLINE# ctxt = req . environ [ 'nova.context' ] #NEWLINE# flavors = db . api . instance_type_get_all ( ctxt ) #NEWLINE# builder = self . _get_view_builder ( req ) #NEWLINE# items = [ builder . build ( flavor , is_detail = is_detail ) for flavor in flavors . values ( ) ] #NEWLINE# return items