Example #1
0
 def get(self, page_num=1):
     print(self.request.uri)
     customers = customer_service.find_page(page_num, settings.settings_app["page_size"])
     self.set_header("Content-Type", "text/html; charset=utf-8")
     self.render("customer_list.tpl", customer_list=customers)
Example #2
0
def test_find_page():
    page_num = 1
    customers = customer_service.find_page(page_num)
    print(customers)