def get(self, customer_id=None): print(self.request.uri) c = None if customer_id: c = customer_service.find(int(customer_id)) self.render("customer.tpl", customer=c)
def test_find(): customer_id = 2 customer = customer_service.find(customer_id) print(customer.phone) print(customer.type.repr_json())