Yea! response.render is the function that I was looking for. The web2py book says:
Almost all of its components are built from scratch and are designed to work together, but they function just as well outside of the complete web2py framework. For example, ....or the template language can be used independently of the web2py framework by importing gluon.dal or gluon.template into your own Python applications. So I thought it could be done, but wasn't getting the *how. *I wish it was clearer exactly *how* that is achieved in the context of individual files, instead of http responses. Anyway, that function gets me out of my cramp. @ villas - thanks for that link looks very helpful and gives me some useful ideas for my report project. Thanks for posting it! On Thursday, June 14, 2012 3:47:15 AM UTC-4, Niphlod wrote: > > yep. web2py can produce csv files as well, and html reports..... with > response.render you can "redirect" the normal template to a file instead of > letting it go to the browser. >