[Twisted-Python] Page.renderString returns Deferred at <addr> current result: 'blah'

Valentino Volonghi aka Dialtone dialtone at divmod.com
Fri Dec 24 20:43:30 EST 2004

William Waites wrote:

>There is also a helper function that you can use:
>    s = page.renderString()
>    from twisted.trial.util import wait
>    s = wait(s)
>though I am not sure how advisable it is to use that, depending on
>what exactly it is you are trying to do...
That's a solution, although not very 'clean'.
You should use renderSynchronously call in rend.Page.
Beware! You cannot have a deferred in renderSynchronously so use at your 
own risk :).

More information about the Twisted-Python mailing list