[Twisted-web] Using Cheetah with twisted.web

Matt Helm code.name.eric at gmail.com
Mon Feb 20 16:06:51 MST 2006


> One other thing, rpy will automatically cache the instance you create if its
> in your resource class. Which means you will only take the hit once when
> initially creating class. So it may block briefly depending on size of
> template, but afterwards, should be as fast as calling request.write on a
> class directly, which is basically what your are doing.
>
> ToddB


Putting it in a defertothread was no problem. The same resource class also
has to pull some data by way of xmlrpc but everything works very clean
and fast.

Matt



More information about the Twisted-web mailing list