[Twisted-Python] Question about using the adbapi
Albert Brandl
albert.brandl at weiermayer.com
Tue May 10 01:26:37 MDT 2011
On Mon, May 09, 2011 at 11:03:12AM -0000, exarkun at twistedmatrix.com wrote:
>
> d.addCallback(f, x, y) will result in f(resultOfD, x, y)
Cool - no need to wrap the method call :-). The documentation for runQuery
does not mention this feature, though:
"Returns a Deferred which will fire the return value of a DB-API
cursor's 'fetchall' method, or a Failure."
Maybe it's obvious for people who know how Deferreds work :-/
Thanks, and best regards,
--
Albert Brandl
Weiermayer Solutions GmbH | Abteistraße 12, A-4813 Altmünster
phone: +43 (0) 720 70 30 14 | fax: +43 (0) 7612 20 3 56
web: http://www.weiermayer.com
More information about the Twisted-Python
mailing list