Пример #1
0
 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'])
Пример #2
0
 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'])