def map_base_attributes(cube, mapper_class, naming, locale=None):
 base = [attr for attr in cube.all_attributes if attr.is_base]
 mapper = mapper_class(cube, naming, locale)
 mapped = {attr.ref: mapper[attr] for attr in base}
 return (mapper.fact_name, mapped)

def map_base_attributes ( cube , mapper_class , naming , locale = None ) : base = [ attr for attr in cube . all_attributes if attr . is_base ] mapper = mapper_class ( cube , naming , locale ) mapped = { attr . ref : mapper [ attr ] for attr in base } return ( mapper . fact_name , mapped )
map all base attributes of cube using mapping function mapper .