def PopulateQueryResult(self, result, count, offset, compile=False):

    offset = min(offset, self.__count - self.__offset)
    limited_offset = min(offset, _MAX_QUERY_OFFSET)
    if limited_offset:
      self.__offset += limited_offset
      result.set_skipped_results(limited_offset)

    if offset == limited_offset and count:

      if count > _MAXIMUM_RESULTS:
        count = _MAXIMUM_RESULTS
      results = self.__results[self.__offset:self.__offset + count]
      count = len(results)
      self.__offset += count





      result.result_list().extend(results)

    if self.__offset:

      self.__last_result = self.__results[self.__offset - 1]

    result.set_keys_only(self.keys_only)
    result.set_more_results(self.__offset < self.__count)
    self.PopulateCursor(result)
    if compile:
      self._EncodeCompiledCursor(
          self.__query, result.mutable_compiled_cursor())
Generates an event API path
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/datastore/old_datastore_stub_util.py/ListCursor.PopulateQueryResult--crossover with--dataset/ETHPy150Open customerio/customerio-python/customerio/__init__.py/CustomerIO.get_event_query_string