[Twisted-Python] SQLAlchemy and Twisted

Tristan Seligmann mithrandi at mithrandi.net
Fri May 7 09:34:29 EDT 2010


On Fri, May 7, 2010 at 12:53 PM, Konrads Smelkovs
<konrads.smelkovs at gmail.com> wrote:
> If you want an ORM in Twisted look for STORM twisted integration. Overall,
> it works (I tried). Some quirks are there, e.g. without twisted you would do
> something like resultset[10:20].sort(Sort.ASC) but with twsited you have to
> do (assuming inlineCallbacks)
>
> res= yield  resultset[10:20]
> res = yield res.sort(Sort.ASC)

If you wanted to, you could write this as:

(yield resultset[10:20]).sort(Sort.ASC)

assuming a new enough version of Python.
-- 
mithrandi, i Ainil en-Balandor, a faer Ambar



More information about the Twisted-Python mailing list