def PopulateQueryResult(self, count, offset, result):
    result.set_skipped_results(min(count, offset))
    result_list = result.result_list()
    if self.__results:
      if self.__query.keys_only():
        for entity in self.__results:
          entity.clear_property()
          entity.clear_raw_property()
          result_list.append(entity)
      else:
        result_list.extend(self.__results)
    else:
      result_list = []
    result.set_keys_only(self.__query.keys_only())
    result.set_more_results(offset < count)
    if self.__results or self.__last_ent:
      self._EncodeCompiledCursor(result.mutable_compiled_cursor())
Poll the state of the given lease.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/datastore/appscale_stub_util.py/QueryCursor.PopulateQueryResult--crossover with--dataset/ETHPy150Open openstack/oslo.vmware/oslo_vmware/api.py/VMwareAPISession._poll_lease