I know people ask about deferreds all the time (and i&#39;ve read through a bunch of those questions), but there is still one thing I don&#39;t quite grasp.<div><br></div><div>If I want to do a number of actions in a row that each return a deferred but depend on eachother, do I need to nest those callbacks?</div>
<div><br></div><div>Ie if i want to:</div><div>1. Call database function using adbabi</div><div>2. Call xmlrpc method using result from 1</div><div>3. Call database using result from 2</div><div><br></div><div>Would I just put 2 inside the callback for 1 and then put 3 inside the callback for 2?</div>
<div><br></div><div>How would I do that in one function? All the examples I have seen have a function calling one method returning a deferred and then placing the logic (doing something with the result) in the callback, but do not deal with multiple deferreds that depend on each other.</div>