def collect_dependencies(attributes, all_attributes):
 dependencies = {attr.ref: attr.dependencies for attr in all_attributes}
 depsorted = depsort_attributes([attr.ref for attr in attributes], dependencies)
 return depsorted

def collect_dependencies ( attributes , all_attributes ) : dependencies = { attr . ref : attr . dependencies for attr in all_attributes } depsorted = depsort_attributes ( [ attr . ref for attr in attributes ] , dependencies ) return depsorted
collect all original and dependant cube attributes for attributes .