'Retrieves all the attributes for all the urns.'

def GetAttributes(self, urns, token=None, age=NEWEST_TIME):

    urns = set([utils.SmartUnicode(u) for u in urns])
    to_read = {urn: self._MakeCacheInvariant(urn, token, age) for urn in urns}
    if to_read:
        for (subject, values) in data_store.DB.MultiResolvePrefix(to_read, AFF4_PREFIXES, timestamp=self.ParseAgeSpecification(age), token=token, limit=None):
            values.sort(key=(lambda x: x[(-1)]), reverse=True)
            (yield (utils.SmartUnicode(subject), values))
