示例#1
0
文件: customer.py 项目: hwangsyin/crm
    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)
示例#2
0
def test_find():
    customer_id = 2
    customer = customer_service.find(customer_id)
    print(customer.phone)
    print(customer.type.repr_json())