

@cherrypy.expose
def preview(self, working_name, **args):
    document = _extract_document(args, working_name)
    print(document)
    if (not document.template_name):
        raise cherrypy.HTTPRedirect('/timeout')
    (html, _) = self.final_renderer.render_preview(document.template_name, document.styles, **document.args)
    return html

dataset/ETHPy150Open KeepSafe/ks-email-parser/email_parser/gui/gui.py Server.preview/original