def get(self): # name = self.get_argument('name', '') # password = self.get_argument('password', '') name = "zhangsan" password = '******' result = edit_profile(self, name, password) self.write(result['msg'])
def post(self): name = self.get_argument('name', '') password = self.get_argument('password', '') result = edit_profile(self, name, password) if result['status'] is False: return self.render('account/account_profile.html', message=result['msg']) return self.render('account/account_profile.html', message=result['msg'])