def flavor_field_data(request, include_empty_option=False):
 flavors = flavor_list(request)
 if flavors:
  flavors_list = sort_flavor_list(request, flavors)
  if include_empty_option:
   return ([('', _('Select Flavor'))] + flavors_list)
  return flavors_list
 if include_empty_option:
  return [('', _('No flavors available'))]
 return []

def flavor_field_data ( request , include_empty_option = False ) : flavors = flavor_list ( request ) if flavors : flavors_list = sort_flavor_list ( request , flavors ) if include_empty_option : return ( [ ( '' , _ ( 'Select Flavor' ) ) ] + flavors_list ) return flavors_list if include_empty_option : return [ ( '' , _ ( 'No flavors available' ) ) ] return [ ]
returns a list of tuples of all image flavors .