def _result_generator(self, count, results, func, q, search_options):
        page = 0
        num_pages = int(count / search_options['limit'] + 0.9999)
        while True:
            for res in results:
                yield res

            # go to next page?
            page += 1
            if page >= num_pages:
                break

            # retrieve next page
            search_options['offset'] = page * search_options['limit']
            result_dict = func(q, search_options)
            results = result_dict['results']
            
    #
    # Form API
    #
Returns a generator that will make the necessary calls to page
dataset/ETHPy150Open opencolorado/OpenColorado-Tools-and-Utilities/Scripts/Harvest/Drcog/ckanclient/__init__.py/CkanClient._result_generator