Part of twisted.web.template View Source
root 
using write.
In order to create a string representation, root will be 
decomposed into simpler objects which will themselves be decomposed and so 
on until strings or objects which can easily be converted to strings are 
encountered.
| Parameters | request | A request object which will be passed to the rendermethod of 
anyIRenderableprovider which is encountered. | 
| root | An object to be made flatter.  This may be of type unicode,bytes,slot,Tag,tuple,list,GeneratorType,Deferred, or something that 
providesIRenderable. | |
| write | A callable which will be invoked with each bytesproduced by flatteningroot. | |
| Returns | A Deferredwhich will be called back whenroothas been completely flattened intowriteor which will be 
errbacked if an unexpected exception occurs. | |