def tryit(): templatename = request.form['templatename'] jsonid = request.form['jsonid'] jsonpath = request.form['jsonpath']+jsonid projectname = request.form['projectname'] x = sec.renderx(templatename,session['user_name'],projectname,jsonpath) if x == -1: return 'error' else: return render_template('out.html',templatename = templatename,projectname=projectname)
def tryit(): templatename = request.form['templatename'] jsonid = request.form['jsonid'] jsonpath = request.form['jsonpath'] + jsonid projectname = request.form['projectname'] x = sec.renderx(templatename, session['user_name'], projectname, jsonpath) if x == -1: return 'error' else: return render_template('out.html', templatename=templatename, projectname=projectname)
def render(templatename, data, projectname, user): print "render was called" + str(current_process().index) odtout = sec.renderx(templatename, user, projectname, data)
def render(templatename,data,projectname,user): print "render was called"+str(current_process().index) odtout = sec.renderx(templatename,user,projectname,data) if os.path.isfile(str(odtout[1])): pdfgen.delay(odtout,user,projectname)