title: tornado + python. wait for chained operations to finish with callbacks
body: <p>I have a simple handler like so : </p>
  
  <pre><code>@asynchronous
  @gen.engine
  def post(self):
      result = functionOne()
      foo = MyObject()
      bar = AnotherObject()
  </code></pre>
  
  <p>But I'd like for result to come back, then execute foo, then bar in a sequence. I've tried using nested callbacks as per <a href="http://www.tornadoweb.org/documentation/gen.html" rel="nofollow">http://www.tornadoweb.org/documentation/gen.html</a> but without much luck.</p>
  
  <p>thx!</p>