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

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

    attribute_prefix = []
    for v in request.values:
        attribute_prefix.append(v.attribute)
    timestamp = self.FromTimestampSpec(request.timestamp)
    subject = request.subject[0]
    values = self.db.ResolveMulti(subject, attribute_prefix, timestamp=timestamp, limit=request.limit, token=request.token)
    response.results.Append(subject=subject, payload=[(attribute, self._Encode(value), int(ts)) for (attribute, value, ts) in values if value])
