Esempio n. 1
0
 def request_arguments(self, params):
     arguments = self.request.arguments
     for param in params:
         if not arguments.get(param, ''):
             log.error("param:%s is need" % param)
             raise self.ecode.PARAM_ERR
     dto = Dict()
     dto.update({key: arguments[key][0].decode('utf-8') for key in arguments})
     log.warning("req params=%s" % dto)
     return dto
Esempio n. 2
0
 def request_arguments(self, params):
     arguments = self.request.arguments
     for param in params:
         if not arguments.get(param, ''):
             log.error("param:%s is need" % param)
             raise self.ecode.PARAM_ERR
     dto = Dict()
     dto.update(
         {key: arguments[key][0].decode('utf-8')
          for key in arguments})
     log.warning("req params=%s" % dto)
     return dto
Esempio n. 3
0
 def get(self):
     log.warning("index,%s" % self._headers)
     # self.write("hahah")
     # self.redirect('/overview')
     self.render('blank.html')
Esempio n. 4
0
 def get(self):
     log.warning("index,%s" % self._headers)
     # self.write("hahah")
     # self.redirect('/overview')
     self.render('blank.html')