Never mind.  I figured this out myself.

Just add the following to the controller function for the view that
needs to be saved:
html = response.render('default/run_report.html', context)

Then I just need to copy that to a file and store it on the disk.


Thanks any way!


On Aug 4, 2:17 pm, JimK <jkel...@gmail.com> wrote:
> I'm using web2py to create a report and would like to save the HTML
> that would be rendered in a browser to an HTML file to be viewed later
> (e.g. without re-running all of the queries).
>
> In other words, my web2py app generates a page that displays a bunch
> of queries that were run for a report and I'd like a separate .html
> file to be generated and stored on the server with the same html that
> can be viewed at an time and can be emailed.
>
> Thanks in advance,
>
> JimK

Reply via email to