[Twisted-web] Using synchronous (blocking) code with Nevow
xifxif at gmail.com
Wed Apr 6 07:33:49 MDT 2005
Is there a simple tutorial/howto that explains how exactly this is done?
I'm new to both Twisted and Nevow, and I'm mainly a web developer
with very little undestanding of what "threads" and "deferreds" are.
On Apr 5, 2005 2:47 AM, orbitz at ezabel.com <orbitz at ezabel.com> wrote:
> 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