[Twisted-web] Using synchronous (blocking) code with Nevow
orbitz at ezabel.com
orbitz at ezabel.com
Mon Apr 4 18:47:11 MDT 2005
You'll probably have to put the code in a thread and use deferreds to
make it appear asynch to the rest of your code.
On Apr 4, 2005, at 2:41 PM, Xif wrote:
> Hello everyone
>
> I have a library of Python scripts that I need to use with my upcoming
> web-application.
>
> Unfortunately, those scripts block; for example, some of the objects I
> need to construct take several seconds each to return an instance from
> __init__().
>
> How can I still use that code inside Nevow?
>
> (Using a different web server instead of Twisted's is definitely an
> option, if it doesn't entail any significant disadvantages.)
>
> Xif
>
> _______________________________________________
> Twisted-web mailing list
> Twisted-web at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
>
More information about the Twisted-web
mailing list