how can I make a function which have a deferred object return a value that depends of the deferred object's result.<br>example:<br>how can get the result from the resolver?<br><br>from twisted.names import client, dns<br><br>
def somefunction(somepars):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; r&nbsp; = client.Resolver('/etc/resolv.conf')<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; d = r.resolve(dns.Query('<a href="http://www.example.com">www.example.com</a>', dns.MX, dns.IN))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; d.Callbacks(somefunct1, somefunctErr2)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return ?<br><br><br>cheers one<br>