'Resolve multiple attributes for a given subject at once.'

@RPCWrapper
def MultiResolvePrefix(self, request, response):

    attribute_prefix = [utils.SmartUnicode(v.attribute) for v in request.values]
    timestamp = self.FromTimestampSpec(request.timestamp)
    subjects = list(request.subject)
    for (subject, values) in self.db.MultiResolvePrefix(subjects, attribute_prefix, timestamp=timestamp, token=request.token, limit=request.limit):
        response.results.Append(subject=subject, payload=[(utils.SmartStr(attribute), self._Encode(value), int(ts)) for (attribute, value, ts) in values])
