Hello all, I would like to use nevow with data from a sql query, but I'm having trouble figuring out how to do it.
From what I understood, data is fetched in the data_xxx methods. But if I use the ConnectionPool query I get a Defered as a result. And the data_xxx method should return the data and not a Defered, correct?
The other way would be to get a db connection and make the query in the data_xxx method. But then, I suppose it would not run in a thread and it would block the processing. Can someone give me a hint on how to do it? Thanks Pedro Lima
Lì venerdì, 2004/05/21 alle 10:18, +0100, Pedro Lima ha scritto:
Hello all,
I would like to use nevow with data from a sql query, but I'm having trouble figuring out how to do it.
From what I understood, data is fetched in the data_xxx methods. But if I use the ConnectionPool query I get a Defered as a result. And the data_xxx method should return the data and not a Defered, correct?
just return the deferred. nevow will do the right thing (tm). federico -- Federico Di Gregorio http://people.initd.org/fog Debian GNU/Linux Developer fog@debian.org INIT.D Developer fog@initd.org We are all dust, Saqi, so play the lute We are all wind, Saqi, so bring wine. -- Omar Khayam
participants (2)
-
Federico Di Gregorio
-
Pedro Lima