def assess_multi_type_represent(ids, opts):
 if (not ids):
  return current.messages['NONE']
 ids = ([ids] if (type(ids) is not list) else ids)
 strings = [str(opts.get(id)) for id in ids]
 return ', '.join(strings)

def assess_multi_type_represent ( ids , opts ) : if ( not ids ) : return current . messages [ 'NONE' ] ids = ( [ ids ] if ( type ( ids ) is not list ) else ids ) strings = [ str ( opts . get ( id ) ) for id in ids ] return ', ' . join ( strings )
represent multiple types .