def _DecodeCompiledCursor(self, query, compiled_cursor):
    assert len(compiled_cursor.position_list()) == 1

    position = compiled_cursor.position(0)
    entity_as_pb = datastore_pb.EntityProto()
    (query_info_encoded, entity_encoded) = position.start_key().split(
        _CURSOR_CONCAT_STR, 1)
    query_info_pb = datastore_pb.Query()
    query_info_pb.ParseFromString(query_info_encoded)
    self._ValidateQuery(query, query_info_pb)

    entity_as_pb.ParseFromString(entity_encoded)
    return (entity_as_pb, position.start_inclusive())
Converts a compiled_cursor into a cursor_entity.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/datastore/old_datastore_stub_util.py/ListCursor._DecodeCompiledCursor