def get(self):
        template_values = {}

        query = PageTestModel.all()
        results = query.fetch(20)
        if len(results) < 20:
            for i in range(0, 20):
                model = PageTestModel(testval=i)
                model.put()
            time.sleep(1)

        
        page1 = Paginator.get(model=PageTestModel, count=10)
        page2 = Paginator.get(model=PageTestModel, count=10, start=page1["next"])

        template_values["page1"] = page1
        template_values["page2"] = page2
        template_values["page_1_results"] = page1["results"]
        template_values["page_1_previous"] = page1["previous"]
        template_values["page_1_next"] = page1["next"]
        template_values["page_2_results"] = page2["results"]
        template_values["page_2_previous"] = page2["previous"]
        template_values["page_2_next"] = page2["next"]

        path = os.path.join(os.path.dirname(__file__), 'templates/paginator.html')
        self.response.out.write(template.render(path, template_values))
dataset/ETHPy150Open joerussbowman/gaeutilities/main.py/PaginatorPage.get/original