MobileBlur

Artifact Content
Login

Artifact c404f699b102089c47b6d0423be37c9d3c1914f4:


{{
import os
from gluon.contrib.generics import pdf_from_html
filename = '%s/%s.html' % (request.controller,request.function)
if os.path.exists(os.path.join(request.folder,'views',filename)):
   html=response.render(filename)
else:
   html=BODY(BEAUTIFY(response._vars)).xml()
pass
=pdf_from_html(html)
}}