title: tornado reverse url with post request
body: <p>I have a report service in tornado application.
  I would like to re-use the function that creates reports from a report Json.</p>
  
  <p>Meaning, in the new handler that "regenerate" existing report, I would like to reuse an existing handler that knows how to create reports from a Json.</p>
  
  <p>server.py:</p>
  
  <pre><code>def create_server():
  return tornado.web.Application([
      (r"/task", generator.GenHandler),
      (r"/task/(.+)", generator.GenHandler),
  
      url(r"/regenerate_task", generator.GenHandler, name="regenerate_task"),
      url(r"/regenerate_task/(.+)", generator.GenHandler, name="regenerate_task"),
  
      (r"/report_status/regenerate", report_status.Regenerate)
  </code></pre>
  
  <p>genHandler.class:</p>
  
  <pre><code>class GenHandler(tornado.web.RequestHandler):
      async def post(self):
          try:
              LOGGER.info(str(self.request.body))
              gen_args = self.parsed_body
             # create here report using the parsed body
  </code></pre>
  
  <p>and this is the handler I am trying to create.
  It will take a saved json from DB and create a completely new report with the original report logic.</p>
  
  <pre><code>class Regenerate(tornado.web.RequestHandler):
      async def post(self):
          rep_id = self.request.arguments.get('rep_id')[0].decode("utf-8") if self.request.arguments.get('rep_id') \
              else 0
  
          try:
              report = db_handler.get_report_by_id(rep_id)
              if *REPORT IS VALID*:
                  return self.reverse_url("regenerate_task", report)
              else:
                  report = dict(success=True, report_id=rep_id, report=[])
  
          except Exception as ex:
              report = dict(success=False, report_id=rep_id, report=[], error=str(ex))
  
          finally:
              self.write(report)
  </code></pre>
  
  <p>Right now, nothing happens. I just get the JSON I needed, but no entry for GenHandler and no report being regenerated</p>