20 Feb 2006 20 Feb '06
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.
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.