[Twisted-Python] Woven View factories: defered rendering?
Bill Gribble
grib at billgribble.com
Thu Nov 20 06:14:33 MST 2003
On Thu, 2003-11-20 at 05:25, Michal Pasternak wrote:
> Philippe Lafoucri?re [Thu, Nov 20, 2003 at 11:04:31AM +0100]:
> > Same problem here, and I didn't find a solution. This should to the woven faq
> > I think.
>
> As I am a very, very lazy man, I'd like to hear from at least one Twisted
> developer, that it's currently impossible (or unwise to do that) before
> trying to implement such functionality.
Well, it's possible to do if you are willing to do some legwork
yourself. If you override the render method of your Page, you can
manually handle waiting for the Deferred stuff to finish, because in a
Resource's render you can return NOT_DONE_YET and then call
request.finish() at a later time. I've done that successfully.
nevow handles all this stuff much more smoothly. I wouldn't put a lot
of work into extending woven.
b.g.
More information about the Twisted-Python
mailing list