Guest User

Untitled

a guest
Jun 20th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. class strest(tornado.web.RequestHandler):
  2. def post(self):
  3. value = self.get_argument('key')
  4. cbtp = cbt.main(value)
  5.  
  6. res = {cbtp: cbtp}
  7. return cbtp
  8.  
  9. class strest(tornado.web.RequestHandler):
  10. def set_default_headers(self):
  11. self.set_header("Content-Type", 'application/json')
  12.  
  13. def post(self):
  14. value = self.get_argument('key')
  15. cbtp = cbt.main(value)
  16. r = json.dumps({'cbtp': cbtp})
  17. self.write(r)
Add Comment
Please, Sign In to add comment